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
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In