]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Captive-Portal: fix voucher form
authorAlexander Marx <alexander.marx@ipfire.org>
Thu, 4 Feb 2016 11:01:30 +0000 (12:01 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Sep 2017 17:54:45 +0000 (18:54 +0100)
Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
html/cgi-bin/captive/index.cgi

index 975bd61d5f8bb9f27ea3c575534e19a607a37755..34908bd63c56b7ad5be4efdd52218838b021c2be 100755 (executable)
@@ -122,7 +122,6 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'Captive activate'}"){
 }
 
 if($redir == 1){
-       sleep(4);
        print "Status: 302 Moved Temporarily\n";
        print "Location: $url\n";
        print "Connection: close\n";
@@ -212,7 +211,7 @@ print<<END
                                                        <b>$Lang::tr{'Captive voucher'}</b>&nbsp<input type='text' maxlength="8" size='10' style="font-size: 24px;font-weight: bold;" name='VOUCHER'>
                                                </td>
                                                <td>
-                                                       <input type='submit' name='ACTION' value="$Lang::tr{'Captive activate'}"/>
+                                                       <input type='hidden' name='redirect' value ='$url'><input type='submit' name='ACTION' value="$Lang::tr{'Captive activate'}"/>
                                                </td>
                                        </tr>
                                </table>