Input validation, broken regex (Javascript, Chrome, Mac)
-
Hi,
I'm getting an error when trying to add a fw rule (firewall_rules_edit.php). Destination address is set to "Single host or alias", and is a valid IP address. When I hit "Save", I get an alert saying "Please match the requested format.".
Output from the javascript console:
Pattern attribute value [a-zA-Z0-9_.:]+ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /[a-zA-Z0-9_.:]+/: Invalid escape
I'm running Chrome 53.0.2785.116 (64-bit) on OSX. The javascript works fine in Safari. I saw a post concerning some other js issue that was resolved by clearing the browser cache. Tried that, but the problem persists.
Is this a known bug? Feature?
Cheers,
Chris
-
It's a Chrome issue… please see these other posts. If you don't want to patch pfSense, use a different browser until the next release version of pfSense.
This topic has a post that has a quick step-by-step to patch pfSense...
https://forum.pfsense.org/index.php?topic=118521.0Other topics on the issue...
https://forum.pfsense.org/index.php?topic=118595.0
https://forum.pfsense.org/index.php?topic=117007.0 -
Thanks!