Script Hatası

  1. KısayolKısayol reportŞikayet pmÖzel Mesaj
    flybatwin
    flybatwin's avatar
    Kayıt Tarihi: 01/Mayıs/2008
    Erkek

    bir script kurdum üye olurken hata veriyor sanırım  hostingden  bi  ayar  filan  yapmak gerekiyor  nedir bu hata

     

     

    PHP Warning – yii\base\ErrorException

    escapeshellcmd() has been disabled for security reasons

    • 1. in /home/ronet/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailTransport.phpat line 259
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      250251252253254255256257258259260261262263264265266267268
                               * Note that escapeshellarg and escapeshellcmd are inadequate for our purposes, especially on Windows.
           *
           * @param string $string The string to be validated
           *
           * @return bool
           */
          private function _isShellSafe($string)
          {
              // Future-proof
              if (escapeshellcmd($string) !== $string || !in_array(escapeshellarg($string), array("'$string'", "\"$string\""))) {
                  return false;
              }
       
              $length = strlen($string);
              for ($i = 0; $i < $length; ++$i) {
                  $c = $string[$i];
                  // All other characters have a special meaning in at least one common shell, including = and +.
                  // Full stop (.) has a special meaning in cmd.exe, but its impact should be negligible here.
                  // Note that this does permit non-Latin alphanumeric characters based on the current locale.
                      
    • 2. yii\base\ErrorHandler::handleError(2'escapeshellcmd() has been disabl...''/home/ronet/public_html/protecte...'259, ...)
    • 3. in /home/ronet/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailTransport.php at line 259– escapeshellcmd('social@example.com')
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      253254255256257258259260261262263264265
                               *
           * @return bool
           */
          private function _isShellSafe($string)
          {
              // Future-proof
              if (escapeshellcmd($string) !== $string || !in_array(escapeshellarg($string), array("'$string'", "\"$string\""))) {
                  return false;
              }
       
              $length = strlen($string);
              for ($i = 0; $i < $length; ++$i) {
                  $c = $string[$i];
                      
    • 4. in /home/ronet/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailTransport.php at line 288– Swift_Transport_MailTransport::_isShellSafe('social@example.com')
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      282283284285286287288289290291292293294
                               *
           * @return string|null
           */
          private function _formatExtraParams($extraParams, $reversePath)
          {
              if (false !== strpos($extraParams, '-f%s')) {
                  if (empty($reversePath) || false === $this->_isShellSafe($reversePath)) {
                      $extraParams = str_replace('-f%s', '', $extraParams);
                  } else {
                      $extraParams = sprintf($extraParams, $reversePath);
                  }
              }
       
                      
    • 5. in /home/ronet/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailTransport.php at line 176– Swift_Transport_MailTransport::_formatExtraParams('-f%s''social@example.com')
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      170171172173174175176177178179180181182
                                      $headers = str_replace("\r\n.", "\r\n..", $headers);
                  $subject = str_replace("\r\n.", "\r\n..", $subject);
                  $body = str_replace("\r\n.", "\r\n..", $body);
                  $to = str_replace("\r\n.", "\r\n..", $to);
              }
       
              if ($this->_invoker->mail($to, $subject, $body, $headers, $this->_formatExtraParams($this->_extraParams, $reversePath))) {
                  if ($evt) {
                      $evt->setResult(Swift_Events_SendEvent::RESULT_SUCCESS);
                      $evt->setFailedRecipients($failedRecipients);
                      $this->_eventDispatcher->dispatchEvent($evt, 'sendPerformed');
                  }
              } else {
                      
    • 6. in /home/ronet/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php at line 85– Swift_Transport_MailTransport::send(Swift_Message, [])
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      79808182838485868788899091
                                      $this->_transport->start();
              }
       
              $sent = 0;
       
              try {
                  $sent = $this->_transport->send($message, $failedRecipients);
              } catch (Swift_RfcComplianceException $e) {
                  foreach ($message->getTo() as $address => $name) {
                      $failedRecipients[] = $address;
                  }
              }
       
                      
    • 7. in /home/ronet/public_html/protected/vendor/yiisoft/yii2-swiftmailer/Mailer.php at line 146– Swift_Mailer::send(Swift_Message)
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      140141142143144145146147148149150151152
                                  $address = $message->getTo();
              if (is_array($address)) {
                  $address = implode(', ', array_keys($address));
              }
              Yii::info('Sending email "' . $message->getSubject() . '" to "' . $address . '"', __METHOD__);
       
              return $this->getSwiftMailer()->send($message->getSwiftMessage()) > 0;
          }
       
          /**
           * Creates Swift mailer instance.
           * @return \Swift_Mailer mailer instance.
           */
                      
    • 8. in /home/ronet/public_html/protected/humhub/components/mail/Mailer.php at line 91– yii\swiftmailer\Mailer::sendMessage(humhub\components\mail\Message)
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      85868788899091929394959697
                                      }
                  $message->setTo($address);
              } elseif ($this->isRecipientSurpressed($address)) {
                  return true;
              }
       
              return parent::sendMessage($message);
          }
       
          /**
           * Checks if an given e-mail address is surpressed.
           *
           * @since 1.3
                      
    • 9. in /home/ronet/public_html/protected/vendor/yiisoft/yii2/mail/BaseMailer.php at line 263– humhub\components\mail\Mailer::sendMessage(humhub\components\mail\Message)
    • 10. in /home/ronet/public_html/protected/vendor/yiisoft/yii2/mail/BaseMessage.php at line 49– yii\mail\BaseMailer::send(humhub\components\mail\Message)
    • 11. in /home/ronet/public_html/protected/humhub/modules/user/models/Invite.php at line 148– yii\mail\BaseMessage::send()
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      142143144145146147148149150151152153154
                                      ], [
                      'token' => $this->token,
                      'registrationUrl' => $registrationUrl
                  ]);
                  $mail->setTo($this->email);
                  $mail->setSubject(Yii::t('UserModule.views_mails_UserInviteSelf', 'Welcome to %appName%', ['%appName%' => Yii::$app->name]));
                  $mail->send();
              } elseif ($this->source == self::SOURCE_INVITE && $this->space !== null) {
       
                  if ($module->sendInviteMailsInGlobalLanguage) {
                      Yii::$app->language = Yii::$app->settings->get('defaultLanguage');
                  }
       
                      
    • 12. in /home/ronet/public_html/protected/humhub/modules/user/models/Invite.php at line 122– humhub\modules\user\models\Invite::sendInviteMail()
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      116117118119120121122123124125126127128
                                  if ($existingInvite !== null) {
                  $this->token = $existingInvite->token;
                  $existingInvite->delete();

    www.tekno50.com
  2. KısayolKısayol reportŞikayet pmÖzel Mesaj
    EmQceR
    EmQceR's avatar
    Kayıt Tarihi: 14/Kasım/2007
    Erkek

    hosting firman bazı fonksiyonları kapatmış hocam escapeshellcmd() bu fonksiyon işletim sisteminden çalıştırdığı için güvenlik sorun olmuştur.


    ...
Toplam Hit: 780 Toplam Mesaj: 2
script hatası