I have an Hebrew version of phpMyFAQ installed and it is great,
when i was testing, i noticed some very straight forward queries has not returned the right results..
i debugged and found the following :
1. the issue resides only with MySQL and MySQLi
2. only happen when some specific letters are in the search term.
i nested further, and found the code that cause this:
Lines 66-68 @ ./inc/PMF/Search/Database/MySql.php
and
Lines 66-68 @ ./inc/PMF/Search/Database/MySqli.php
Code: Select all
$chars = array (chr(150), chr(147), chr(148), chr(146), chr(34), '"', '"');
$replace = array ("-", "\"", "\"", "'", "\"" , "\"", "\"");
$searchTerm = str_replace ($chars, $replace, $searchTerm);
What are these replacements for? what happens when i remove them?
Thank you very much