Captive Portal - Can't configure vouchers
-
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:
- Browse to an existing captive portal zone(named Public in my example).
- 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 - 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
-
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
-
Work like it should be now. Thanks for your fast answer!