Skip to content

Commit

Permalink
Remove \r and \n from answer text in javascript for conditions page.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@3016 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
David Olivier committed Jun 26, 2007
1 parent 22ab681 commit 651383d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/conditions.php
Expand Up @@ -425,6 +425,8 @@
foreach($canswers as $can)
{
$an=str_replace("'", "`", $can[2]);
$an=str_replace("\r", " ", $an);
$an=str_replace("\n", " ", $an);
$conditionsoutput .= "\t\tFieldnames[$jn]='$can[0]';\n"
."\t\tCodes[$jn]='$can[1]';\n"
."\t\tAnswers[$jn]='$an';\n";
Expand Down

0 comments on commit 651383d

Please sign in to comment.