mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
captive: Fix passing redirection URL
Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -153,7 +153,7 @@ my $tmpl = HTML::Template->new(
|
||||
die_on_bad_params => 0
|
||||
);
|
||||
|
||||
$tmpl->param(REDIRECT_URL => $url);
|
||||
$tmpl->param(REDIRECT => $url);
|
||||
|
||||
# Coupon
|
||||
if ($settings{'AUTH'} eq "COUPON") {
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
<form action="" method="POST">
|
||||
<input type="hidden" name="ACTION" value="SUBMIT">
|
||||
<input type="hidden" name="url" value="<TMPL_VAR NAME="URL">">
|
||||
<input type="hidden" name="redirect" value="<TMPL_VAR NAME="REDIRECT">">
|
||||
|
||||
<TMPL_IF NAME="COUPON">
|
||||
<input class="form-text <TMPL_IF NAME="ERROR">form-error</TMPL_IF>" type="text" name="COUPON">
|
||||
|
||||
Reference in New Issue
Block a user