From 7b3b96cff8d0b1b36caaaef5cd58fcfea5e3537e Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 10 Feb 2009 21:01:47 +0000 Subject: fixed a bug in the regex pattern to converts tabs and spaces into a single space http://codeigniter.com/bug_tracker/bug/6662/ --- system/database/DB_driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index dac4c8bdf..42b6a7577 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -1213,7 +1213,7 @@ class CI_DB_driver { } // Convert tabs or multiple spaces into single spaces - $item = preg_replace('/[\t| ]+/', ' ', $item); + $item = preg_replace('/[\t ]+/', ' ', $item); // If the item has an alias declaration we remove it and set it aside. // Basically we remove everything to the right of the first space -- cgit v1.2.3-24-g4f1b