brave200 Posted March 14, 2014 Share Posted March 14, 2014 My question relates to the instructions on enabling the Tiny MCE Editor at this link: http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html In the second part of the article you have to comment out two lines of code in the /classes/validate.php file. Those two lines of code are suppose to be this: //if (preg_match('/<[ \t\n]*script/ims', $html) || preg_match('/('.$events.')[ \t\n]*=/ims', $html) || preg_match('/.*script\:/ims', $html)) //return false; I am only able to find this line to modify? Am I in the right "validate.php" file? I have done an exact line search find for the above line and cannot find it. This line below is the closest match. I'm running version 1.5.6.1. if (preg_match('/<[\s]*script/ims', $html) || preg_match('/('.$events.')[\s]*=/ims', $html) || preg_match('/.*script\:/ims', $html)) return false; Thanks again for the help! Link to comment Share on other sites More sharing options...
PascalVG Posted March 15, 2014 Share Posted March 15, 2014 Hi Brave, probably the right one.[ \t\n] is a subset of \s: \s means (any of) the five characters [ \f\n\r\t] More info on regular expressions here: http://perldoc.perl.org/perlre.html Hope this helps, pascal. Link to comment Share on other sites More sharing options...
brave200 Posted March 21, 2014 Author Share Posted March 21, 2014 Hi Pascal, I keep getting a blank page when I try and comment out those lines. Any ideas on what I might be doing wrong? I'm usually really good with editing these files. I've attached my "validation.php" file in its original form so you can take a look if possible? Thanks! Validate.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now