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

    Redirection url trimmed "/"

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 1.1k 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.
    • L Offline
      lsense
      last edited by

      I had an issue about the redirection with an url path (pfSense 2.0.2).
      If the user asked for example "www.site.com/test" then the captive portal translated it to "www.site.comtest".

      I had to change in /usr/local/captiveportal/index.php line 49:
      from```
      $orig_request = trim($_REQUEST['redirurl'], " /");

      to```
      $orig_request = trim($_REQUEST['redirurl']);
      
      1 Reply Last reply Reply Quote 0
      • E Offline
        eri--
        last edited by

        This has been fixed on 2.0.3 the only way to fix is to gitsync there.
        On 2.1 just go to a newer snapshot.

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