Bug in DB::isManip with 'lock/unlock'
| From: | Erik Hjortsberg | Date: | Tue, 10 Jul 2001 08:41:11 +0000 |
| Subject: | Bug in DB::isManip with 'lock/unlock' | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-629@lists.php.net to get a copy of this message | ||
Shouldn't 'lock' and 'unlock' be included in DB::isManip as manipulative queries?
Line 300 in DB.php:
if (preg_match('/^\s*"?(INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|ALTER|GRANT|REVOKE)\s+/i', $query)) {
should be:
if (preg_match('/^\s*"?(INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|ALTER|GRANT|REVOKE|LOCK|UNLOCK)\s+/i', $query)) {
Am I right?
/erik hjortsberg