Skip to content

Commit

Permalink
Fixed issue #3460: Apostrophes in additional attributes of token tabl…
Browse files Browse the repository at this point in the history
…e errors on edit

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@7490 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Aug 19, 2009
1 parent adf58af commit eecd327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/tokens.php
Expand Up @@ -1707,7 +1707,7 @@
foreach ($tokenfields as $tokenfield=>$tokendescription)
{
$nrofattributes++;
$tokenoutput.="<tr><td>$tokenfield</td><td><input type='text' name='description_$tokenfield' value='".htmlspecialchars($tokendescription)."' /></td><td>";
$tokenoutput.="<tr><td>$tokenfield</td><td><input type='text' name='description_$tokenfield' value='".htmlspecialchars($tokendescription,ENT_QUOTES,'UTF-8')."' /></td><td>";
if ($examplerow!==false)
{
$tokenoutput.=htmlspecialchars($examplerow[$tokenfield]);
Expand Down Expand Up @@ -1928,7 +1928,7 @@
$tokenoutput .= "\t\t<tr>"
."<td align='right' width='20%'><strong>".$attr_description.":</strong></td>\n"
."\t<td><input type='text' size='55' name='$attr_name' value='";
if (isset($$attr_name)) { $tokenoutput .=$$attr_name;}
if (isset($$attr_name)) { $tokenoutput .=htmlspecialchars($$attr_name,ENT_QUOTES,'UTF-8');}
$tokenoutput.="'></td>"
."</tr>";
}
Expand Down

0 comments on commit eecd327

Please sign in to comment.