I noticed this filter seems to be case sensitive, is there an easy way to make it case insensitive?
Thanks Dave
Hi Dave,
Sure, if you edit includes/filter.php and look for the following code in the Search and Replace block:
return trim(str_replace($filter_data["search"],$filter_data["replace"],$text));
(line 50 in the distribution) and change this to use the str_ireplace() function as follows which is the case insensitive version of the same function:
return trim(str_ireplace($filter_data["search"],$filter_data["replace"],$text));
That should do the trick... Cheers, David.
Thanks for your help, I upgraded to PHP 5.2 and it worked a treat.
Dave
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hi Dave,
Sure, if you edit includes/filter.php and look for the following code in the Search and Replace block:
return trim(str_replace($filter_data["search"],$filter_data["replace"],$text));
(line 50 in the distribution) and change this to use the str_ireplace() function as follows which is the case insensitive version of the same function:
return trim(str_ireplace($filter_data["search"],$filter_data["replace"],$text));
That should do the trick...
Cheers,
David.