From 0b07588906746d85df5721add6324c0403860c6c Mon Sep 17 00:00:00 2001 From: sessingo Date: Thu, 16 Feb 2023 14:42:36 +0100 Subject: [PATCH] Skip sanitation if first character contains ". --- src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php b/src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php index fac9269..7f9771f 100644 --- a/src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php +++ b/src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php @@ -785,6 +785,11 @@ public function wrapSanitizer($value) return $value; } + // If first character contains " - skip sanitation + if ($value[0] === '"') { + return $value; + } + // Separate our table and fields which are joined with a ".", like my_table.id $valueArr = explode('.', $value, 2);