Skip to content

Commit ea6cbe0

Browse files
committed
Revert a preg_replace()
1 parent 9edcacd commit ea6cbe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/database/DB_driver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ function _protect_identifiers($item, $prefix_single = FALSE, $protect_identifier
12631263
}
12641264

12651265
// Convert tabs or multiple spaces into single spaces
1266-
$item = preg_replace('/\s+/', ' ', $item);
1266+
$item = preg_replace('/[\t ]+/', ' ', $item);
12671267

12681268
// If the item has an alias declaration we remove it and set it aside.
12691269
// Basically we remove everything to the right of the first space

0 commit comments

Comments
 (0)