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

      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
      • MikeV7896M
        MikeV7896
        last edited by

        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

          Thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.