Skip to content

Commit

Permalink
Fixed issue #07862: Using default texts with apostrophes breaks Expre…
Browse files Browse the repository at this point in the history
…ssion Manager javascript

Dev: TODO move EM javascript array to json ...
Dev: Just a quick fix here, only for default text.
  • Loading branch information
Shnoulle committed Jun 21, 2013
1 parent 966a00a commit 4137d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/expressions/em_manager_helper.php
Expand Up @@ -3435,7 +3435,7 @@ private function setVariableAndTokenMappingsForExpressionManager($surveyid,$forc
// . "','relevance':'" . (($relevance != '') ? htmlspecialchars(preg_replace('/[[:space:]]/',' ',$relevance),ENT_QUOTES) : 1)
// . "','readWrite':'" . $readWrite
// . "','grelevance':'" . (($grelevance != '') ? htmlspecialchars(preg_replace('/[[:space:]]/',' ',$grelevance),ENT_QUOTES) : 1)
. "','default':'" . (is_null($defaultValue) ? '' : $defaultValue)
. "','default':'" . (is_null($defaultValue) ? '' : str_replace("'", "\'", $defaultValue))
. "','rowdivid':'" . (is_null($rowdivid) ? '' : $rowdivid)
. "','onlynum':'" . ($onlynum ? '1' : '')
. "','gseq':" . $groupSeq
Expand Down

0 comments on commit 4137d88

Please sign in to comment.