]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
WebIF: fix gpl accept redirection for elinks.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 23 Jan 2014 18:21:22 +0000 (19:21 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 23 Jan 2014 18:21:22 +0000 (19:21 +0100)
elinks doesn't like get a 302 redirection after an other.

html/html/index.cgi

index 81ae7dc92d7733d76208a9bf201b015d6fa0d342..f33f7019e8d39a3dbf5afcc3f5d5236c16a40cc9 100644 (file)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2014  IPFire Team  <info@ipfire.org                      #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
 #                                                                             #
 ###############################################################################
 
 #                                                                             #
 ###############################################################################
 
-print "Status: 302 Moved\n";
+if (! -e "/var/ipfire/main/gpl_accepted" ) {
+       print "Status: 302 Moved Temporarily\n";
+       print "Location: /cgi-bin/gpl.cgi\n\n";
+       exit (0);
+}
+
+print "Status: 302 Moved Temporarily\n";
 print "Location: /cgi-bin/index.cgi\n\n";
 print "Location: /cgi-bin/index.cgi\n\n";