/mnt/data/shnoulle/nginx/www/master/third_party/paragonie/sodium_compat/src/Compat.php(2633)
2621 * @psalm-suppress MixedArgument 2622 * @psalm-suppress MixedInferredReturnType 2623 * @psalm-suppress MixedReturnStatement 2624 */ 2625 public static function crypto_sign_open($signedMessage, $publicKey) 2626 { 2627 /* Type checks: */ 2628 ParagonIE_Sodium_Core_Util::declareScalarType($signedMessage, 'string', 1); 2629 ParagonIE_Sodium_Core_Util::declareScalarType($publicKey, 'string', 2); 2630 2631 /* Input validation: */ 2632 if (ParagonIE_Sodium_Core_Util::strlen($signedMessage) < self::CRYPTO_SIGN_BYTES) { 2633 throw new SodiumException('Argument 1 must be at least CRYPTO_SIGN_BYTES long.'); 2634 } 2635 if (ParagonIE_Sodium_Core_Util::strlen($publicKey) !== self::CRYPTO_SIGN_PUBLICKEYBYTES) { 2636 throw new SodiumException('Argument 2 must be CRYPTO_SIGN_PUBLICKEYBYTES long.'); 2637 } 2638 2639 if (self::useNewSodiumAPI()) { 2640 /** 2641 * @psalm-suppress InvalidReturnStatement 2642 * @psalm-suppress FalsableReturnStatement 2643 */ 2644 return sodium_crypto_sign_open($signedMessage, $publicKey); 2645 }
#0 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/core/LSSodium.php(118): ParagonIE_Sodium_Compat::crypto_sign_open() 113 */ 114 public function decrypt($sEncryptedString, $bReturnFalseIfError = false) 115 { 116 if ($this->bLibraryExists === true) { 117 if (!empty($sEncryptedString) && $sEncryptedString != 'null') { 118 $plaintext = ParagonIE_Sodium_Compat::crypto_sign_open(base64_decode($sEncryptedString), $this->sEncryptionPublicKey); 119 if ($plaintext === false) { 120 throw new SodiumException(sprintf(gT("Wrong decryption key! Decryption key has changed since this data were last saved, so data can't be decrypted. Please consult our manual at %s.", 'unescaped'), 'https://manual.limesurvey.org/Data_encryption#Errors')); 121 } else { 122 return $plaintext; 123 } |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/LSActiveRecord.php(430): LSSodium->decrypt() 425 $updatedValues = $LEM->getUpdatedValues(); 426 foreach ($attributes as $key => $attribute) { 427 if ($action === 'decrypt' && array_key_exists($key, $updatedValues)) { 428 continue; 429 } 430 $this->$key = $sodium->$action($attribute); 431 } 432 } 433 } 434 435 /** |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/LSActiveRecord.php(337): LSActiveRecord->decryptEncryptAttributes() 332 $sodium = Yii::app()->sodium; 333 334 return $sodium->decrypt($value); 335 } else { 336 // decrypt attributes 337 $this->decryptEncryptAttributes('decrypt'); 338 339 return $this; 340 } 341 } 342 |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(3951): LSActiveRecord->decrypt() 3946 if ($token) { 3947 $tokenEncryptionOptions = $survey->getTokenEncryptionOptions(); 3948 foreach ($token as $key => $val) { 3949 // Decrypt encrypted token attributes 3950 if (isset($tokenEncryptionOptions['columns'][$key]) && $tokenEncryptionOptions['columns'][$key] === 'Y') { 3951 $val = $token->decrypt($val); 3952 } 3953 $this->knownVars["TOKEN:" . strtoupper($key)] = [ 3954 'code' => $anonymized ? '' : $val, 3955 'jsName_on' => '', 3956 'jsName' => '', |
#4 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(6744): LimeExpressionManager->setVariableAndTokenMappingsForExpressionManager() 6739 $LEM->groupRelevanceInfo = []; 6740 if (!is_null($gseq)) { 6741 $LEM->currentGroupSeq = $gseq; 6742 6743 if (!is_null($surveyid)) { 6744 $LEM->setVariableAndTokenMappingsForExpressionManager($surveyid, $forceRefresh, $anonymized); 6745 if ($gseq > $LEM->maxGroupSeq) { 6746 $LEM->maxGroupSeq = $gseq; 6747 } 6748 6749 if (!$LEM->allOnOnePage || ($LEM->allOnOnePage && !$LEM->processedRelevance)) { |
#5 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/frontend_helper.php(1886): LimeExpressionManager::StartProcessingGroup() 1881 global $token, $surveyid; 1882 1883 $thissurvey = $aSurveyInfo; 1884 $thissurvey['aNavigator'] = getNavigatorDatas(); 1885 LimeExpressionManager::StartProcessingPage(); 1886 LimeExpressionManager::StartProcessingGroup(-1, false, $surveyid, true); // start on welcome page 1887 1888 // WHY HERE ????? 1889 $_SESSION['survey_' . $surveyid]['LEMpostKey'] = mt_rand(); 1890 1891 $loadsecurity = returnGlobal('loadsecurity', true); |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/SurveyRuntimeHelper.php(1055): display_first_page() 1050 $this->aSurveyInfo['datasecurity_notice_label'] = Survey::replacePolicyLink($this->aSurveyInfo['datasecurity_notice_label'], $this->aSurveyInfo['sid']); 1051 } 1052 1053 if ($bDisplayFirstPage) { 1054 $_SESSION[$this->LEMsessid]['test'] = time(); 1055 display_first_page($this->thissurvey, $this->aSurveyInfo); 1056 Yii::app()->end(); // So we can still see debug messages 1057 } 1058 } 1059 1060 private function checkForDataSecurityAccepted() |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/SurveyRuntimeHelper.php(209): SurveyRuntimeHelper->displayFirstPageIfNeeded() 204 $this->checkForDataSecurityAccepted(); // must be called after initMove to allow LEM to be initialized 205 if (EmCacheHelper::useCache()) { 206 $this->aSurveyInfo['emcache'] = true; 207 } 208 $this->checkQuotas(); // check quotas (then the process will stop here) 209 $this->displayFirstPageIfNeeded(); 210 $this->saveAllIfNeeded(); 211 $this->saveSubmitIfNeeded(); 212 // TODO: move somewhere else 213 $this->setNotAnsweredAndNotValidated(); 214 } else { |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/survey/index.php(604): SurveyRuntimeHelper->run() 599 unset($redata); 600 $redata = compact(array_keys(get_defined_vars())); 601 Yii::import('application.helpers.SurveyRuntimeHelper'); 602 $tmp = new SurveyRuntimeHelper(); 603 // try { 604 $tmp->run($surveyid, $redata); 605 // } catch (WrongTemplateVersionException $ex) { 606 // echo $ex->getMessage(); 607 // } 608 } 609 |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/survey/index.php(26): index->action() 21 public $oTemplate; 22 23 public function run() 24 { 25 useFirebug(); 26 $this->action(); 27 } 28 29 public function action() 30 { 31 global $surveyid; |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CAction.php(76): index->run() 71 { 72 $method=new ReflectionMethod($this, 'run'); 73 if($method->getNumberOfParameters()>0) 74 return $this->runWithParamsInternal($this, $method, $params); 75 76 $this->run(); 77 return true; 78 } 79 80 /** 81 * Executes a method of an object with the supplied named parameters. |
#11 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): CAction->runWithParams() 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 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): CController->runAction() 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 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): CController->runActionWithFilters() 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 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282): CController->run() 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))); |
#15 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): CWebApplication->runController() 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. |
#16 |
+
–
/mnt/data/shnoulle/nginx/www/master/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 /** |
#17 |
+
–
/mnt/data/shnoulle/nginx/www/master/index.php(182): CApplication->run() 177 require_once APPPATH . 'core/LSYii_Application' . EXT; 178 179 $config = require_once(APPPATH . 'config/internal' . EXT); 180 181 Yii::$enableIncludePath = false; 182 Yii::createApplication('LSYii_Application', $config)->run(); 183 184 /* End of file index.php */ 185 /* Location: ./index.php */ |