View Single Post
  #41  
Old 04-18-2018, 10:15 AM
 
acrotech acrotech is offline
 

Advanced Member
  
Join Date: Aug 2008
Location: NY, USA
Posts: 35
 

Default Re: Smart Search and PHP7

$search = array ("'<script[^>]*?>.*?</script>'si", // Strip out javascript
"'<[\/\!]*?[^<>]*?>'si", // Strip out HTML tags
"'([\r\n])[\s]+'", // Strip out white space
"'&(quot|#34);'i", // Replace HTML entities
"'&(amp|#3;'i",
"'&(lt|#60);'i",
"'&(gt|#62);'i",
"'&(nbsp|#160);'i",
"'&(iexcl|#161);'i",
"'&(cent|#162);'i",
"'&(pound|#163);'i",
"'&(copy|#169);'i",
"'&#(\d+);'e");

if ($search && $string){
return preg_replace($search, ' ', $string);
} else {
return false;
}

I believe, the issue is in the above code - 'e"

Here is the error -
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /.../modules/Smart_Search/smart_search_functions.php on line 319

The search does not return anything.
__________________
xcart classic
4.7.12 Platinum
php 7.x
Reply With Quote