Details
-
Bug
-
Resolution: Fixed
-
High
-
5.4.9, 5.3.11
-
None
Description
Since the remove template operator is based on the PHP function substr, which cannot handle utf8 strings, the operator will return weird � characters if used with special chars.
Please check custom proposed fix:
https://github.com/mugoweb/ezpublish-legacy/pull/57 Edit: Now https://github.com/ezsystems/ezpublish-legacy/pull/1298
Steps to reproduce.
- Edit a legacy tpl template, and add the following code to it:
{'fipsï'|remove( 4,1 )}
- Clear the caches, and open the respective content in the frontend
- Confirm the code will return �, instead ï