diff --git a/api/src/Db.php b/api/src/Db.php index 29ed4e8498..cc8da68676 100644 --- a/api/src/Db.php +++ b/api/src/Db.php @@ -754,7 +754,7 @@ class Db { $num_rows = $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']; } - if (($this->readonly || $this->log_updates) && !preg_match('/\(?(SELECT|SET|SHOW)/i', $Query_String)) + if (($this->readonly || $this->log_updates) && !preg_match('/^\(?(SELECT|SET|SHOW)/i', $Query_String)) { if ($this->log_updates) error_log($Query_String.': '.function_backtrace()); if ($this->readonly) return 0;