Changing a bug's email address causes "DB Error: syntax error"
| From: | Sascha Kettler | Date: | Mon, 31 Oct 2005 22:15:03 +0000 |
| Subject: | Changing a bug's email address causes "DB Error: syntax error" | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-3183@lists.php.net to get a copy of this message | ||
Hi,
just tried changing a bug reporter's email address to my address I get an
"DB Error: syntax error".
Steps to reproduce:
As developer, go to http://pecl.php.net/bugs/bug.php?id=5761&edit=1
put
"skettler@php.net" into "New email" and submit.
It looks like a missing space on line 276 of
peclweb/public_html/bugs/bug.php:
$query .= "email='{$_POST['in']['email']}',";
should be
$query .= " email='{$_POST['in']['email']}',";
because $query is initialized (line 271) as
$query = 'UPDATE bugdb SET';
Cheers,
Sascha Kettler