Skip to content

Commit

Permalink
Changed include to require_once, fixed bug where apostrophe in help t…
Browse files Browse the repository at this point in the history
…ext would crash html coding using "addslashes"

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@839 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jan 25, 2004
1 parent 3b05b17 commit 968342f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions admin/conditions.php
Expand Up @@ -34,7 +34,7 @@
#############################################################
*/

include("config.php");
require_once("config.php");

sendcacheheaders();

Expand Down Expand Up @@ -321,7 +321,11 @@
echo "<table width='100%' align='center' cellspacing='0' cellpadding='0' style='border-style: solid; border-size: 1; border-color: #555555'>\n";
echo "\t<tr bgcolor='#CDCDCD'>\n";
echo "\t\t<td colspan='3' align='center'>\n";
echo "\t\t\t$setfont<b>Only show question $questiontitle<img src='./images/speaker.jpg' alt='$questiontext' onClick=\"alert('$questiontext')\"> if:</b></font>\n";
echo "\t\t\t$setfont<b>Only show question $questiontitle<img src='./images/speaker.jpg' alt='"
. addslashes($questiontext)
. "' onClick=\"alert('"
. addslashes($questiontext)
. "')\"> if:</b></font>\n";
echo "\t\t</td>\n";
echo "\t</tr>\n";

Expand Down

0 comments on commit 968342f

Please sign in to comment.