Menu

#1 code glitch doesn't handle mysql prefix when deleting action

open
nobody
None
5
2007-04-20
2007-04-20
JumpMast3r
No

line 35 of action.php reads:
$result = mysql_query("DELETE FROM action WHERE id='$_GET[id]'") or do_error('action.php::del action','mysql_query',mysql_error());
to properly handle cases where a mysql prefix is being used the line should read:
$result = mysql_query("DELETE FROM $GLOBALS[mysql_prefix]action WHERE id='$_GET[id]'") or do_error('action.php::del action','mysql_query',mysql_error());

Discussion


Log in to post a comment.

MongoDB Logo MongoDB