Menu

#1 Bug found in phpticket-0.71

open
nobody
None
5
2004-06-09
2004-06-09
Anonymous
No

Bug in action.php :

prefix for the database tables was not used when deleting
an action for a ticket. Therefore a SQL error raised
(table action not found... the table was named
prefixaction)

diff file for correcting the typo :
---------------------------------
35c35
< $result = mysql_query("DELETE
FROM action WHERE id='$_GET[id]'") or
do_error('action.php::del
action','mysql_query',mysql_error());
---
> $result = mysql_query("DELETE
FROM $GLOBALS[mysql_prefix]action WHERE
id='$_GET[id]'") or do_error('action.php::del
action','mysql_query',mysql_error());
---------------------------------

Regards,
Alexandre Norman
alexandre dot norman at mnh dot fr

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.