Firewall|Custom Rules – bug when pasting text with escaped characters
-
I noticed that, if I paste a .htaccess rule with escaped characters in the text field of “Custom Rules”, after clicking the “Save the Custom Rules” button the escaped characters are transformed in “twice escaped characters”. Example: for the .htaccess rule below
RewriteCond %{REMOTE_ADDR} !^192\.168\.
If I paste this rule it the text field and then save it, the resulting .htaccess text will be:
RewriteCond %{REMOTE_ADDR} !^192\\.168\\.
Notice that was inserted a second backslash beside the original one. This is enough to turn the rule invalid, and block the access to the site, in some cases.
https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Firewall|Custom Rules – bug when pasting text with escaped characters’ is closed to new replies.