From ba5259b36ce47c060c94fde747721bf118af1d1b Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Tue, 31 Jul 2012 08:49:12 +0000 Subject: [PATCH] Fixed regexp bug in the Database class --- src/messenger/webim/libs/classes/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messenger/webim/libs/classes/database.php b/src/messenger/webim/libs/classes/database.php index ea87f280..35194b22 100644 --- a/src/messenger/webim/libs/classes/database.php +++ b/src/messenger/webim/libs/classes/database.php @@ -254,7 +254,7 @@ Class Database{ */ public function query($query, $values = NULL, $params = array()){ try{ - $query = preg_replace("/\{(\S+)\}/", $this->tablesPrefix."$1", $query); + $query = preg_replace("/\{(\w+)\}/", $this->tablesPrefix."$1", $query); $query_key = md5($query); if (! array_key_exists($query_key, $this->preparedStatements)) {