Can't save component dialog having this string into any field: substr() | Community
Skip to main content
Level 2
Jan 21, 2022 11:02 AM UTC
Solved

Can't save component dialog having this string into any field: substr()

Hi,


i have a custom component that allows users to save custom html/css/js. The problem is that i cannot save any component having this string into a textfield or textarea: substr()


Network response:


If i remove substr() it can be saved. Is there some security checks done on strings when saving content? how can i save such a string? It works with core components, so i guess it can be saved somehow.

Thanks for the help!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Anish-Sinha
Anish-SinhaAccepted solution
Employee
Jan 21, 2022 5:31 PM UTC

Hi @dartoism-inetum,
There is no OOTB restriction which prohibits the authors to enter this script. Both textfield and text area allows you to enter this text. You can check if there is any custom script written for this validation for that dialog field. If not, there could be permission issue. Please check the logs to find more.

2 replies

Anish-Sinha
Anish-SinhaAccepted solution
Employee
Jan 21, 2022 5:31 PM UTC

Hi @dartoism-inetum,
There is no OOTB restriction which prohibits the authors to enter this script. Both textfield and text area allows you to enter this text. You can check if there is any custom script written for this validation for that dialog field. If not, there could be permission issue. Please check the logs to find more.

Translate
Level 2
Jan 25, 2022 8:04 AM UTC

Hi,

 

it appears that query was blocked by an intermediate security system to prevent unexpected code injection. So issue solved.

Translate