From 8e787bbfc5de9e7c72bef44bc5d375083a8e61de Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 23 Jul 2006 19:29:37 +0000 Subject: [PATCH] Since we are caught in somewhat of a pickle concerning captive portal local element manager, force users to include "captiveportal" somewhere in the filename so that Lighty mod rewrites can deterimine if the request is indeed local, etc. --- etc/inc/system.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 0ebf5a9bcf..6e66b439a3 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -591,7 +591,7 @@ function system_generate_lighty_config($filename, if($captive_portal == true) { $captiveportal = ",\"mod_rewrite\""; - $captive_portal_rewrite = "url.rewrite-once = ( \"(.*.[hH][tT][mM][lL]|.*.[hH][tT][mM]|.*.[Gg][iI][fF]|.*.[Pp][nN][Gg]|.*.[Jj][Pp][Gg])\" => \"$1\", \"(.*)\" => \"/index.php?redirurl=$1\" )"; + $captive_portal_rewrite = "url.rewrite-once = ( \"(.*captiveportal.*)\" => \"$1\", \"(.*)\" => \"/index.php?redirurl=$1\" )"; } if($port <> "")