Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: security fix, use libxml_disable_entity_loader for admin theme a…
…nd survey templates configuration files
- Loading branch information
LouisGac
committed
Jul 22, 2016
1 parent
5a39a5d
commit fe57ea3
Showing
3 changed files
with
56 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,7 +197,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de | |
{ | ||
$surveyformat = ""; | ||
} | ||
if($oTemplate->config->engine->cssframework) | ||
if( isset($oTemplate->config->engine->cssframework) && $oTemplate->config->engine->cssframework) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
olleharstedt
Collaborator
|
||
{ | ||
$surveyformat .= " ".$oTemplate->config->engine->cssframework."-engine "; | ||
} | ||
|
@@ -556,12 +556,12 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de | |
if($thissurvey['googleanalyticsapikey'] === "9999useGlobal9999") | ||
{ | ||
$_googleAnalyticsAPIKey = trim(getGlobalSetting('googleanalyticsapikey')); | ||
} | ||
} | ||
else if (isset($thissurvey['googleanalyticsapikey']) && trim($thissurvey['googleanalyticsapikey']) != '') | ||
{ | ||
$_googleAnalyticsAPIKey = trim($thissurvey['googleanalyticsapikey']); | ||
} | ||
else | ||
else | ||
{ | ||
$_googleAnalyticsAPIKey = ""; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This causes a fatal error when using a custom template, see http://ls25.mysurveyhosting.com/index.php/survey/index/sid/936162/newtest/Y/lang/de