Affects Version/s: 6.2.X EE, 7.0.X EE, Master
Inside the Advanced Configuration settings for a Page, there is a Target field. If you put any non-alphanumeric characters in this field and click Save, the field will be escaped before it is saved. This causes the field to get exponentially longer with each successive save, leading to severe memory problems.
Steps to Reproduce
- Navigate to Left-Hand Navigation Menu > Liferay > Navigation > Welcome > Configure > Advanced.
- Enter some text that contains some non-alphanumeric characters in the target field (for instance, "This is a test" works because it has spaces), and click Save.
- You will be taken away from the page; navigate back to the page.
Excpected Result: The text you entered will be displayed in the target field
Actual Result: The text you entered into the target field has been escaped. If you save it again, you'll see that it gets escaped even further. Each time you save it, the text gets exponentially longer as there are exponentially more characters that need to be escaped each time.
It should not be possible to keep making a piece of text longer and longer simply by clicking save. If you save it too many times, you'll be having memory problems.
Reproduced in master (74b1a2def1879cd4239386e2d73c38c176d32003)
Reproduced in ee-7.0.x (f18502eb716bc5a7f9933769fc87f3a55622ce7f)
Reproduced in ee-6.2.x (c78862e56bd1422bcf7c35ec169772fbc4380109)