mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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.
This commit is contained in:
parent
c575e41241
commit
8e787bbfc5
@ -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 <> "")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user