If you’re using custom scripts, a better approach might be to use the custom header plugin. I don’t think it will work in the way that you’ve done it within the existing settings forms in OJS. This thread provides a good overview of the plugin and how its used: Use Case/Examples for Custom header plugin for OJS - #8 by asmecher
In the future, if you think you may be encountering a security issue, please follow the instructions here:
I’ve entered <script>alert(1)</script> in the “Preferred Public Name” field, but do not see the alert as you report. Can you check the page source to see where the <script>alert(1)</script> is being served and interpreted? (Is it possible you were entering the same script in another field that may be responsible?)
Regards,
Alec Smecher
Public Knowledge Project Team