summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-02-10 22:01:47 +0100
committerDerek Jones <derek.jones@ellislab.com>2009-02-10 22:01:47 +0100
commit7b3b96cff8d0b1b36caaaef5cd58fcfea5e3537e (patch)
tree205c274d8af1725bdab5a146b9b5f83841155bf8 /system/database
parent1d89088e2bbab32e80bd9fe0d74d5df32ab1e3ac (diff)
fixed a bug in the regex pattern to converts tabs and spaces into a single space
http://codeigniter.com/bug_tracker/bug/6662/
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
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