Amazzing Posted June 24, 2011 Share Posted June 24, 2011 Dear Prestashop comunity,Can anybody please tell me where I can edit the rules for input data? I am using Prestashop 1.4.2.5.The front office language is set to Russian. So, when you fill the required field name with a popular Russian name “Вася” it says name is incorrect, BUT: it accepts the set of letters without any meaning “Вывывывывы”. It seems like input data validation rules are not exactly correct for Cyrillic encoding. So, where can I edit these rules? Link to comment Share on other sites More sharing options...
Amazzing Posted June 25, 2011 Author Share Posted June 25, 2011 Does anybody have any ideas? Link to comment Share on other sites More sharing options...
Amazzing Posted June 26, 2011 Author Share Posted June 26, 2011 It is about regular expressions.I found the following line in classes/validate.php: static public function isName($name) { return preg_match('/^[^0-9!<>,;?=+()@#"°{}_$%:]*$/', stripslashes($name)); } I just removed this symbol "°" from the line.And now it works.I wonder, why "°" affects Cyrillic letters? Does anybody now that? 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