Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix search issue with special characters, and escape them in SQL. s9y…
…#844 (s9y#846) * Fix search issue with special characters, and escape them in SQL. s9y#844 * Update functions_entries.inc.php Co-authored-by: Garvin Hicking <38074677+fe-hicking@users.noreply.github.com> * Update functions_entries.inc.php Co-authored-by: Garvin Hicking <38074677+fe-hicking@users.noreply.github.com> * s9y#844 Simplify code removing If statement because we escape term search anyway + change alias to mysqli_real_escape_string * Issue s9y#844 Bring back if statement to switch over boolean mode or not + change regex to only catch BOOLEAN Operator that prefix a word * Update regex boolean mode is trigger only on operator followed by words * Fix typo on regex * s9y#844 add another regex to avoid boolean operator alone that could lead to error --------- Co-authored-by: Garvin Hicking <blog@garv.in> Co-authored-by: Garvin Hicking <38074677+fe-hicking@users.noreply.github.com>
- Loading branch information