summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-13 22:37:04 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-13 22:37:04 +0200
commitea6cbe026b73be13dd853d710b9609e3faf50f44 (patch)
tree0c421792282b1e3bede1e3d7f85728506eb6d9ba /system/database/DB_driver.php
parent9edcacd22ada577c88d82d911b2157e8f0f6a928 (diff)
Revert a preg_replace()
Diffstat (limited to 'system/database/DB_driver.php')
-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 dcaeb5a9b..775fd3354 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1263,7 +1263,7 @@ class CI_DB_driver {
}
// Convert tabs or multiple spaces into single spaces
- $item = preg_replace('/\s+/', ' ', $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