Issue
- Language Override translation values have removed space when they are longer then 75 characters
-
Steps to reproduce:
- Control Panel > Language overrides, add a new key, name it e.g. testing-translation
- Add any value longer then 75 chars to any language
e.g. "test test test test test test test test test test test test test test test t" - Save it and check it again
-
Actual result:
- When the value is longer than 75 characters, some spaces are removed from the text (the above example is 76 chars)
Environment
- Liferay DXP 7.4 U4+
Resolution
-
Whitelisting
in Control Panel -> System Settings -> Security Tools -> AntiSamy Sanitizer solves the issue.com.liferay.portal.language.override.model.PLOEntry
-
Please make sure that after adding
com.liferay.portal.language.override.model.PLOEntry
to the white list of AntiSamy Sanitizer, you save the changes and in the affected keys you set the correct values.
The above whitelisting would not change back the modified values which already have the spaces removed before this configuration change.
Additional Information
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión