Helix Ultimate 2.2.9 - Custom Code Field Converts Script Tags To S-cript On Save - Question | JoomShaper

Helix Ultimate 2.2.9 - Custom Code Field Converts Script Tags To S-cript On Save

S

Selwynn

Helix Framework 5 days ago

Hi JoomShaper Team,After updating Helix Ultimate to version 2.2.9 on Joomla 5, entering custom JavaScript inside Template Options $\rightarrow$ Custom Code (Before </head> or Before </body>) automatically inserts a hyphen into the JavaScript opening tag upon saving (converting s c r i p t to s - c r i p t).

This prevents the JavaScript from executing on the front end and renders raw text output on the page. Please advise if a hotfix will be issued for the framework sanitizer.Thanks!

0
7 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 day ago #230099

@Selwynn @Justion In 99% cases it's caused by default RSFirewall settings. We even have info inside our documenation, as well as RSJoomla.

RSFirewall changes two popular tags to <i-frame> and <s-cript> to block code injections. To stop this, add your IP to the safelist in settings, create an exception for the specific component, or adjust the active scanner settings. That's all.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 5 days ago #229608

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. I have checked it my local environment and it works fine.

https://prnt.sc/iRdffiKb__h1

Best regards,

Toufiqur Rahman (Team Lead, Support)

0
S
Selwynn
Accepted Answer
4 days ago #229839

Hi Toufiq,

Thank you for testing this so quickly! The issue seems to occur specifically on live server environments where active security filters like the one am currently using, RSFirewall inspect POST requests. When saving through Template Options -> Custom Code, those security layers intercept the raw script tags and sanitize them to s-cript before saving to the database.

I am using Stratos templete, if this helps.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 days ago #229860

In this case you need to contact your RSFirewall support. Ask them how to bypass it. Thanks

0
J
Justin
Accepted Answer
2 days ago #230083

@Selwynn, did you sort this out? I'm running into the same issue ... even after uninstalling RSFirewall I'm still running into a glitch where template settings are lost, including custom code.

0
J
Justin
Accepted Answer
1 day ago #230108

Thanks Paul,

I believe disabling 'Enable Active Scanner in the /administrator section' in the Active Scanner tab of the Firewall Configuration does indeed solve the issue.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 day ago #230110

Mark topic as solved. You're welcome.

0