Kromak wrote: ↑Thu Jan 09, 2020 4:54 pm
That was a fantastic guess! I can turn off modsecurity in cPanel and this issue goes away. There must have been an update which caused the bug. I have tried taking out the target="_self" command but I still get the issue with modsecurity enabled. Would there be a work around or would I need to contact my webhost to make some changes to the modsecurity config? Many thanks
If you can find the Mod Security Rule ID being flagged you can ask your host to disable it. I think you need root access to the Apache/ ModSec error log to locate the ID, but it might be somewhere in your cPanel as well. Every host is different to what they allow access to. Check under error logs in cPanel..
Personally - I would keep mod_security enabled if possible, ask your host to help track down the rule and just disable that. The issue is easily replicated on your end, they should be able to locate it without issue.
Edit :
Code: Select all
src="https://www.mydomain.com/image/catalog/ ... e.png"></a>
is
...e.png the actual name of your image? If so that's probably what's triggering the rule. Make sure you have no special characters in the image name. A $_POST request with /... in front of an asset might look like a directory traversal attempt to mod_sec.