summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/DB.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/pear/DB.php b/pear/DB.php
index 3e4012ddd4..2f0bd44400 100644
--- a/pear/DB.php
+++ b/pear/DB.php
@@ -297,7 +297,9 @@ class DB
*/
function isManip($query)
{
- if (preg_match('/^\s*"?(INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|ALTER|GRANT|REVOKE)\s+/i', $query)) {
+ $manips = 'INSERT|UPDATE|DELETE|'.'REPLACE|CREATE|DROP|'.
+ 'ALTER|GRANT|REVOKE|'.'LOCK|UNLOCK';
+ if (preg_match('/^\s*"?('.$manips.')\s+/i', $query)) {
return true;
}
return false;