cvs: php-bugs-web / fix.php
| From: | jim winstead | Date: | Sun, 05 May 2002 17:31:01 +0000 |
| Subject: | cvs: php-bugs-web / fix.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-10050@lists.php.net to get a copy of this message | ||
jimw Sun May 5 13:31:01 2002 EDT
Modified files:
/php-bugs-web fix.php
Log:
comment may need addslashes()
Index: php-bugs-web/fix.php
diff -u php-bugs-web/fix.php:1.5 php-bugs-web/fix.php:1.6
--- php-bugs-web/fix.php:1.5 Sun Apr 21 13:58:03 2002
+++ php-bugs-web/fix.php Sun May 5 13:31:00 2002
@@ -99,7 +99,7 @@
/* add comment */
if ($success && !empty($ncomment)) {
- $query = "INSERT INTO bugdb_comments (bug, email, ts, comment) VALUES
($id,'$user@php.net',NOW(),'$ncomment')";
+ $query = "INSERT INTO bugdb_comments (bug, email, ts, comment) VALUES
($id,'$user@php.net',NOW(),'".addslashes($ncomment)."')";
$success = @mysql_query($query);
}