cvs: pearweb /public_html/bugs bug.php
| From: | Greg Beaver | Date: | Wed, 12 Apr 2006 23:26:31 +0000 |
| Subject: | cvs: pearweb /public_html/bugs bug.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4714@lists.php.net to get a copy of this message | ||
cellog Wed Apr 12 23:26:31 2006 UTC
Modified files:
/pearweb/public_html/bugs bug.php
Log:
register_globals legacy code prevents deleting comments
http://cvs.php.net/viewcvs.cgi/pearweb/public_html/bugs/bug.php?r1=1.106&r2=1.107&diff_format=u
Index: pearweb/public_html/bugs/bug.php
diff -u pearweb/public_html/bugs/bug.php:1.106 pearweb/public_html/bugs/bug.php:1.107
--- pearweb/public_html/bugs/bug.php:1.106 Sat Mar 18 17:59:57 2006
+++ pearweb/public_html/bugs/bug.php Wed Apr 12 23:26:31 2006
@@ -15,7 +15,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: bug.php,v 1.106 2006/03/18 17:59:57 pajoye Exp $
+ * @version $Id: bug.php,v 1.107 2006/04/12 23:26:31 cellog Exp $
*/
/*
@@ -165,11 +165,11 @@
}
// Delete comment
-if ($edit == 1 && $delete_comment) {
+if ($edit == 1 && isset($_GET['delete_comment'])) {
$addon = '';
if (in_array($user, $trusted_developers) && verify_password($user, $pw)) {
- delete_comment($id, $delete_comment);
+ delete_comment($id, $_GET['delete_comment']);
$addon = '&thanks=1';
}
localRedirect('bug.php' . "?id=$id&edit=1$addon");