/var/www/html/application/third_party/phpmailer/src/PHPMailer.php(1789)
1777 * Note that escapeshellarg and escapeshellcmd are inadequate for our purposes, especially on Windows. 1778 * 1779 * @see https://github.com/PHPMailer/PHPMailer/issues/924 CVE-2016-10045 bug report 1780 * 1781 * @param string $string The string to be validated 1782 * 1783 * @return bool 1784 */ 1785 protected static function isShellSafe($string) 1786 { 1787 //Future-proof 1788 if ( 1789 escapeshellcmd($string) !== $string 1790 || !in_array(escapeshellarg($string), ["'$string'", "\"$string\""]) 1791 ) { 1792 return false; 1793 } 1794 1795 $length = strlen($string); 1796 1797 for ($i = 0; $i < $length; ++$i) { 1798 $c = $string[$i]; 1799 1800 //All other characters have a special meaning in at least one common shell, including = and +. 1801 //Full stop (.) has a special meaning in cmd.exe, but its impact should be negligible here.
#0 |
+
–
/var/www/html/application/third_party/phpmailer/src/PHPMailer.php(1789): escapeshellcmd("denis@sondages.pro") 1784 */ 1785 protected static function isShellSafe($string) 1786 { 1787 //Future-proof 1788 if ( 1789 escapeshellcmd($string) !== $string 1790 || !in_array(escapeshellarg($string), ["'$string'", "\"$string\""]) 1791 ) { 1792 return false; 1793 } 1794 |
#1 |
+
–
/var/www/html/application/third_party/phpmailer/src/PHPMailer.php(1882): PHPMailer\PHPMailer\PHPMailer::isShellSafe("denis@sondages.pro") 1877 if (empty($this->Sender) && !empty(ini_get('sendmail_from'))) { 1878 //PHP config has a sender address we can use 1879 $this->Sender = ini_get('sendmail_from'); 1880 } 1881 if (!empty($this->Sender) && static::validateAddress($this->Sender)) { 1882 if (self::isShellSafe($this->Sender)) { 1883 $params = sprintf('-f%s', $this->Sender); 1884 } 1885 $old_from = ini_get('sendmail_from'); 1886 ini_set('sendmail_from', $this->Sender); 1887 } |
#2 |
+
–
/var/www/html/application/third_party/phpmailer/src/PHPMailer.php(1645): PHPMailer\PHPMailer\PHPMailer->mailSend("Date: Wed, 8 Dec 2021 09:04:19 +0100
From: Administrateur <denis...", "This is a test email from LimeSurvey
") 1640 case 'qmail': 1641 return $this->sendmailSend($this->MIMEHeader, $this->MIMEBody); 1642 case 'smtp': 1643 return $this->smtpSend($this->MIMEHeader, $this->MIMEBody); 1644 case 'mail': 1645 return $this->mailSend($this->MIMEHeader, $this->MIMEBody); 1646 default: 1647 $sendMethod = $this->Mailer . 'Send'; 1648 if (method_exists($this, $sendMethod)) { 1649 return $this->$sendMethod($this->MIMEHeader, $this->MIMEBody); 1650 } |
#3 |
+
–
/var/www/html/application/third_party/phpmailer/src/PHPMailer.php(1481): PHPMailer\PHPMailer\PHPMailer->postSend() 1476 try { 1477 if (!$this->preSend()) { 1478 return false; 1479 } 1480 1481 return $this->postSend(); 1482 } catch (Exception $exc) { 1483 $this->mailHeader = ''; 1484 $this->setError($exc->getMessage()); 1485 if ($this->exceptions) { 1486 throw $exc; |
#4 |
+
–
/var/www/html/application/core/LimeMailer.php(606): PHPMailer\PHPMailer\PHPMailer->send() 601 { 602 if (Yii::app()->getConfig('demoMode')) { 603 $this->setError(gT('Email was not sent because demo-mode is activated.')); 604 return false; 605 } 606 return parent::Send(); 607 } 608 609 /** 610 * Get the replacements for token. 611 * @return string[] |
#5 |
+
–
/var/www/html/application/core/LimeMailer.php(593): LimeMailer->Send() 588 if (empty($this->AltBody)) { 589 $html = new \Html2Text\Html2Text($this->Body); 590 $this->AltBody = $html->getText(); 591 } 592 } 593 return $this->Send(); 594 } 595 596 /** 597 * @inheritdoc 598 * Disable all sending in demoMode |
#6 |
+
–
/var/www/html/application/controllers/admin/globalsettings.php(580): LimeMailer->sendMessage() 575 $mailer->rawSubject = $sSubject; 576 $mailer->SMTPDebug = 2; 577 $mailer->setTo($sTo); 578 $mailer->setFrom($sFrom); 579 580 $success = $mailer->sendMessage(); 581 582 if ($success) { 583 $content = gT('Email sent successfully'); 584 } else { 585 $content = sprintf(gT("Email sending failure: %s"), $mailer->getError()); |
#7 |
+
–
/var/www/html/application/controllers/admin/globalsettings.php(560): GlobalSettings->_sendEmailAndShowResult("This
is a test email from LimeSurvey", "Test email from LimeSurvey",
"Administrateur <denis@sondages.pro>", "Administrateur
<denis@sondages.pro>") 555 556 $body = array(); 557 $body[] = sprintf(gT('This is a test email from %s'), $sSiteName); 558 $body = implode("\n", $body); 559 560 $this->_sendEmailAndShowResult($body, $sSubject, $sTo, $sFrom); 561 } 562 563 /** 564 * Send Email and show result 565 * @param string $body |
#8 |
unknown(0): GlobalSettings->sendTestEmail()
|
#9 |
+
–
/var/www/html/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(lsadminmodules\globalsettings\controller\GlobalSettings, array()) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#10 |
+
–
/var/www/html/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(lsadminmodules\globalsettings\controller\GlobalSettings, ReflectionMethod, array("sa" => "sendTestEmail")) 81 $oMethod = new ReflectionMethod($this, $sDefault); 82 } 83 84 // We're all good to go, let's execute it 85 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 86 return parent::runWithParamsInternal($this, $oMethod, $params); 87 } 88 89 /** 90 * Some functions have different parameters, which are just an alias of the 91 * usual parameters we're getting in the url. This function just populates |
#11 |
+
–
/var/www/html/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "sendTestEmail")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#12 |
+
–
/var/www/html/framework/web/CController.php(286): CController->runAction(lsadminmodules\globalsettings\controller\GlobalSettings) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#13 |
+
–
/var/www/html/framework/web/CController.php(265): CController->runActionWithFilters(lsadminmodules\globalsettings\controller\GlobalSettings, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#14 |
+
–
/var/www/html/application/controllers/AdminController.php(202): CController->run("globalsettings") 197 } 198 199 $this->runModuleController($action); 200 201 202 return parent::run($action); 203 } 204 205 /** 206 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. 207 * |
#15 |
+
–
/var/www/html/framework/web/CWebApplication.php(282): AdminController->run("globalsettings") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#16 |
+
–
/var/www/html/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/globalsettings") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#17 |
+
–
/var/www/html/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#18 |
+
–
/var/www/html/index.php(192): CApplication->run() 187 require_once APPPATH . 'core/LSYii_Application' . EXT; 188 189 $config = require_once(APPPATH . 'config/internal' . EXT); 190 191 Yii::$enableIncludePath = false; 192 Yii::createApplication('LSYii_Application', $config)->run(); 193 194 /* End of file index.php */ 195 /* Location: ./index.php */ |