Affects Version/s: 7.3.6 CE GA7
Fix Version/s: None
JDK:Amazon Corretto 8
Application Servers:Apache Tomcat 9.0.x
This occurs on a brand new instance of Liferay 7.3.6 CE. It is easily reproducible from the current download liferay-ce-portal-tomcat-7.3.6-ga7-20210301155526191.
Steps to Reproduce
In a brand new installation, after the setup wizard:
- Open the site menu pane
- Expand Configuration
- Click on Site Settings
- Click on the Advanced tab
- Enter any code in the Piwik text area: <script></script> is enough
- Click Save
The Piwik script code would be inserted into the page as a functioning script.
The Piwik script code it surrounded with quotes, so that the browser treats it as text and displays it on the top of every page.
Note: This is more than an annoyance in my case as I have almost 200 sites with Piwik analytics code. So I would have to touch each one, remove the code from the settings, and build something in the theme to add the Piwik code (which is also different for each site).