• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Input validation, broken regex (Javascript, Chrome, Mac)

Scheduled Pinned Locked Moved webGUI
3 Posts 2 Posters 1.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    thopok
    last edited by Sep 22, 2016, 11:26 AM

    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

    1 Reply Last reply Reply Quote 0
    • M
      MikeV7896
      last edited by Sep 22, 2016, 12:06 PM

      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.0

      Other topics on the issue...
      https://forum.pfsense.org/index.php?topic=118595.0
      https://forum.pfsense.org/index.php?topic=117007.0

      The S in IOT stands for Security

      1 Reply Last reply Reply Quote 0
      • T
        thopok
        last edited by Sep 26, 2016, 7:00 AM

        Thanks!

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received