Skip to content

Commit

Permalink
Fixed magic_quotes checking error
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@898 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Feb 5, 2004
1 parent a7320f0 commit 0f6246d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/browse.php
Expand Up @@ -202,7 +202,7 @@
$idquery = "SELECT * FROM $surveytable WHERE ";
if (isset($_POST['sql']) && $_POST['sql'])
{
if (get_magic_quotes_gpc) {$idquery .= stripslashes($_POST['sql']);}
if (get_magic_quotes_gpc()) {$idquery .= stripslashes($_POST['sql']);}
else {$idquery .= "{$_POST['sql']}";}
}
else {$idquery .= "id=$id";}
Expand Down

0 comments on commit 0f6246d

Please sign in to comment.