Ronnie50 Posted June 5, 2009 Share Posted June 5, 2009 I just went into my server error logs and found that this error is listed over and over and over. Can someone please let me know what is wrong. I am running cc v4.1.1 Error log: PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /hermes/web01/b1599/as.offshoreparts/public_html/includes/functions.inc.php on line 95 Here is the code that it is pointing to: ## Sanitize GET variables to prevent XSS attacks function sanitizeVar($text) { $text = htmlspecialchars($text, ENT_COMPAT); return $text; If i'm not mistaken this line of code was changed as a security update several months back. Does anyone know what this should say to make it not throw an error? Thanks in advance to all replies!! Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 5, 2009 Share Posted June 5, 2009 Hi I have not heard of this problem or of anyone else getting this. Do you have any mods installed on your store. If not then you could and should upgrade to the latest version. Regards Ian Havenswift-hosting Quote Link to comment Share on other sites More sharing options...
Ronnie50 Posted June 6, 2009 Author Share Posted June 6, 2009 Yes this site is modded up pretty good. What is your suggestion for fixing this. I haven't even launched the store yet and I don't really want to have to try to upgrade already, especially with all the mods. Is there anything else I can do? Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 6, 2009 Share Posted June 6, 2009 Yes this site is modded up pretty good. What is your suggestion for fixing this. I haven't even launched the store yet and I don't really want to have to try to upgrade already, especially with all the mods. Is there anything else I can do? What problems is this actually causing to your site ? Quote Link to comment Share on other sites More sharing options...
Ronnie50 Posted June 7, 2009 Author Share Posted June 7, 2009 Yes this site is modded up pretty good. What is your suggestion for fixing this. I haven't even launched the store yet and I don't really want to have to try to upgrade already, especially with all the mods. Is there anything else I can do? What problems is this actually causing to your site ? I guess it isn't really causing any problems to the site. I was mainly trying to just get rid of the error before it did start to cause problems. I guess maybe I need to let the site work and see then what it is going to do. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.