Skip to content

Commit

Permalink
Included $welcome in the addcslashes for edit and insert group (for g…
Browse files Browse the repository at this point in the history
…et_magic_quotes_gpc=on)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@105 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Mar 21, 2003
1 parent dd54444 commit 3530a52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@
{
$short_title = addcslashes($short_title, "'");
$description = addcslashes($description, "'");
$welcome = addcslashes($welcome, "'");
}
$isquery = "INSERT INTO surveys (sid, short_title, description, admin, active, welcome, expires, adminemail) VALUES ('', '$short_title', '$description', '$admin', 'N', '".str_replace("\n", "<BR>", $welcome)."', '$expires', '$adminemail')";
$isresult = mysql_query ($isquery);
Expand All @@ -267,6 +268,7 @@
{
$short_title = addcslashes($short_title, "'");
$description = addcslashes($description, "'");
$welcome = addcslashes($welcome, "'");
}
$usquery = "UPDATE surveys SET short_title='$short_title', description='$description',";
$usquery .= " admin='$admin', welcome='".str_replace("\n", "<BR>", $welcome)."',";
Expand Down

0 comments on commit 3530a52

Please sign in to comment.