Details
-
Bug
-
Resolution: Fixed
-
Critical
-
1.7.0
-
None
-
None
-
Linux Ubuntu 16
Description
Hello. I use Ez Platform for my Russian project, and I have a problem.
When I try save long location object name (more then 82 sigh) in cyrillic I receive a database error about wrong encoding. Example, "1 сентября Министерство экологии крепко возьмется за московских дачников и их скважины".
I found the error place - it is using "substr" instead of "mb_substr" (substr for multi-byte).
Please fix this bug for next release.
File: /vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/Helper/NameSchemaService.php
Line: 205
name = rtrim(substr($name, 0, $this->settings['limit'] - strlen($this->settings['sequence']))) . $this->settings['sequence'];