Quotein classes/validate.php.
@musicmaster Thanks for the info about validate.php,
I did the following but it still does not work ( see screenshots ) , in my case on PS 1.7 latest version, I am trying to add a <br /> tag ( html line break ) in the category name. In my test I tried to put a hashtag #
When I put "Category # Test " for example, I have tried to overwrite the file "Validate.php" , as explained on another topic by redefining the function "isCatalogName" :
<?php class Validate extends ValidateCore { public static function isCatalogName($name) { // simple test return !preg_match('/[]/i', $name); } }
now I should be able to put a hashtag like # but still get the error like on screenshot above. I am using latest version 1.7
I have tried different ways :
- overwritting only the file "Validate.php"
- overwritting Validate.php, but also Category.php and CMSCategory.php where the function "isCatalogName($name)" is called and removing the validation in these files.
- removing the overitten files and editing directly the Core Files in the class directory , then cleared cache, etc.
- I cleared cache in backend and also var/cache files to be sure each time, logged out / logged in administration every time. Refreshed browser cache / Changed browser too !
It does not work.