silvioscavone Posted April 27, 2017 Share Posted April 27, 2017 Hello, I have a CSV to import, but a lot of products have special characters in product name, reference, meta title and meta description. I tried to change Validate.php as below: public static function isCatalogName($name) { // return preg_match('/^[^<>;=#{}]*$/u', $name); return preg_match('/^$/u', $name); } and public static function isReference($reference) { // return preg_match('/^[^<>;={}]*$/u', $reference); return preg_match('/^$/u', $reference); } but I succeded to import the products with "#" character but I still can't import products with ">" and "=" characters Any idea? Thank you very much. Link to comment Share on other sites More sharing options...
Daresh Posted April 27, 2017 Share Posted April 27, 2017 When I do imports like that, I always remove those characters from names or references. I think it's better this way. Link to comment Share on other sites More sharing options...
silvioscavone Posted April 27, 2017 Author Share Posted April 27, 2017 Hi Daresh and thank you for your reply. I'd like to do that, but my references have to be saved by Google crawler exactly like they are born, in order to be found by customers. Do you know how to edit Validate.php at return preg_match('/^[^<>;=#{}]*$/u', $name); ?? Link to comment Share on other sites More sharing options...
selectshop.at Posted April 27, 2017 Share Posted April 27, 2017 Sorry, but there is no SEO impact on this. AND BTW you are opening a security lack on your software/server. Hacker could execute queries, when you allow these both characters on URL. See also the same question here, discussed some days ago: https://www.prestashop.com/forums/topic/606489-prestashop-sucks/ 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