From 55a66a9091c96d70e7735cecb07c4f1ee16cd499 Mon Sep 17 00:00:00 2001 From: phpnut Date: Sun, 4 Mar 2007 05:19:30 +0000 Subject: [PATCH] Adding fix for Ticket #2084 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4574 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/datasources/dbo_source.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index e75531ad8..594462e2b 100644 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -1354,6 +1354,7 @@ class DboSource extends DataSource { for($i = 0; $i < $pregCount; $i++) { if (!empty($match['1'][$i]) && !is_numeric($match['1'][$i])) { $conditions = $conditions . ' '; + $match['0'][$i] = preg_replace('/\\./', '\\.', $match['0'][$i]); $conditions = preg_replace('/^' . $match['0'][$i] . '(?=[^\\w])/', ' '.$this->name($match['1'][$i]), $conditions); if (strpos($conditions, '(' . $match['0'][$i]) === false) { $conditions = preg_replace('/[^\w]' . $match['0'][$i] . '(?=[^\\w])/', ' '.$this->name($match['1'][$i]), $conditions);