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

    Captive Portal - Can't configure vouchers

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    3 Posts 2 Posters 1.2k 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.
    • J
      jujuspi
      last edited by

      Hello everyone,

      Got a problem since the last snapshot 2.1-BETA1 (amd64)
      built on Sun Jan 27 04:50:10 EST 2013.

      When I go to an existing captive portal zone to edit or print vouchers codes, there is a problem.

      Steps to reproduce:

      1. Browse to an existing captive portal zone(named Public in my example).
      2. Try to edit or download vouchers for that particular zone by clicking on the Vouchers tab.
        Current URL before clicking : https://pfsensebox/services_captiveportal.php?zone=public
        Vouchers tab URL : https://pfsensebox/services_captiveportal_vouchers.php?zone=public
      3. Browser redirect every time to https://pfsensebox/services_captiveportal_zones.php

      I've tried to look into the code for publishing a fix, and looked into this condition :

      $cpzone = $_GET['zone'];
      if (isset($_POST['zone']))
              $cpzone = $_POST['zone'];
      
      if (empty($cpzone) || empty($config['captiveportal'][$cpzone])) {
              header("Location: services_captiveportal_zones.php");
              exit;
      }
      
      

      But i don't think that, even if this describe my problem, this would fix the problem, as the Vouchers tab pass into the GET request the zone name public.

      This was not happening on last week snapshots.

      Anyone on this?

      Julien

      1 Reply Last reply Reply Quote 0
      • B
        bardelot
        last edited by

        Thanks. Patch has been submitted [1]. Either wait for a new snapshot that contains it or apply manually.

        [1] https://github.com/bcyrill/pfsense/commit/6c18a8100187726cd8b479dde34902ca55328c83

        1 Reply Last reply Reply Quote 0
        • J
          jujuspi
          last edited by

          Work like it should be now. Thanks for your fast answer!

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