Skip to content

Commit 19acbee

Browse files
committed
Allow space in orderBy()
1 parent 6a63f6c commit 19acbee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MysqliDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ public function orderBy($orderByField, $orderbyDirection = "DESC", $customFields
876876

877877
if (is_array($customFields)) {
878878
foreach ($customFields as $key => $value) {
879-
$customFields[$key] = preg_replace("/[^-a-z0-9\.\(\),_`]+/i", '', $value);
879+
$customFields[$key] = preg_replace("/[^-a-z0-9\.\(\),_` ]+/i", '', $value);
880880
}
881881

882882
$orderByField = 'FIELD (' . $orderByField . ', "' . implode('","', $customFields) . '")';

0 commit comments

Comments
 (0)