mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
- Applied a patch from Loui to fix session removal.
- Replaced all occurences of mysql_escape_string() with mysql_real_escape_string().
This commit is contained in:
parent
9ab02ad6a7
commit
0b92839bee
8 changed files with 71 additions and 71 deletions
|
@ -73,7 +73,7 @@ if ($_REQUEST["add_Comment"]) {
|
|||
$q = "INSERT INTO PackageComments ";
|
||||
$q.= "(PackageID, UsersID, Comments, CommentTS) VALUES (";
|
||||
$q.= intval($_REQUEST["ID"]).", ".uid_from_sid($_COOKIE["AURSID"]) . ", ";
|
||||
$q.= "'".mysql_escape_string($_REQUEST["comment"])."', ";
|
||||
$q.= "'".mysql_real_escape_string($_REQUEST["comment"])."', ";
|
||||
$q.= "UNIX_TIMESTAMP())";
|
||||
db_query($q, $dbh);
|
||||
print __("Comment has been added.")."<br /> <br />\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue