mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
fix regexp to only match beginning of string
This commit is contained in:
parent
23ac04df8d
commit
6221e69229
@ -754,7 +754,7 @@ class Db
|
|||||||
{
|
{
|
||||||
$num_rows = $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'];
|
$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->log_updates) error_log($Query_String.': '.function_backtrace());
|
||||||
if ($this->readonly) return 0;
|
if ($this->readonly) return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user