ResponsiveFilemanager
ResponsiveFilemanager copied to clipboard
Search for Non English Characters in filters
I'm not sure if it's the right place to add this comment since it's not really an issue. I faced problem searching for files with non English file name. The issue was in fix_get_params function in /include/utiles.php . Original code illuminate all characters except English letters.
function fix_get_params($str)
{
return strip_tags(preg_replace("/[^a-zA-Z0-9\.\[\]_| -]/", '', $str));
}
The issue is resolved by using this other cleaning method.
function fix_get_params($str)
{
return htmlentities(strip_tags(stripslashes($str)), ENT_COMPAT, "UTF-8");
}
Hope this helps someone.
Thanks
Il giorno 15 ago 2020, alle ore 15:21, Mostafa Shoman [email protected] ha scritto:
I'm not sure if it's the right place to add this comment since it's not really an issue. I faced problem searching for files with non English file name. The issue was in fix_get_params function in /include/utiles.php . Original code illuminate all characters except English letters.
function fix_get_params($str) { return strip_tags(preg_replace("/[^a-zA-Z0-9.[]_| -]/", '', $str)); } The issue is resolved by using this other cleaning method.
function fix_get_params($str) { return htmlentities(strip_tags(stripslashes($str)), ENT_COMPAT, "UTF-8"); } Hope this helps someone.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trippo/ResponsiveFilemanager/issues/628, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZMENNE36PPDPY2JYSCHDSA2DVTANCNFSM4QAIYEKQ.