File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ function captiveportal_init_webgui_zone($cpcfg) {
476
476
$ res = mwexec ("/usr/local/sbin/lighttpd -f {$ g ['varetc_path ' ]}/lighty- {$ cpzone }-CaptivePortal.conf " );
477
477
478
478
/* fire up https instance */
479
- if (isset ($ cpcfg ['httpslogin ' ]) && $ cpcfg [ ' httpslogin ' ] )
479
+ if (isset ($ cpcfg ['httpslogin ' ]))
480
480
$ res = mwexec ("/usr/local/sbin/lighttpd -f {$ g ['varetc_path ' ]}/lighty- {$ cpzone }-CaptivePortal-SSL.conf " );
481
481
}
482
482
Original file line number Diff line number Diff line change 257
257
$ newcp ['radmac_enable ' ] = $ _POST ['radmac_enable ' ] ? true : false ;
258
258
$ newcp ['radmac_secret ' ] = $ _POST ['radmac_secret ' ] ? $ _POST ['radmac_secret ' ] : false ;
259
259
$ newcp ['reauthenticateacct ' ] = $ _POST ['reauthenticateacct ' ];
260
- $ newcp ['httpslogin ' ] = $ _POST ['httpslogin_enable ' ] ? true : false ;
260
+ if (isset ($ _POST ['httpslogin_enable ' ]))
261
+ $ newcp ['httpslogin ' ] = true ;
262
+ else
263
+ unset($ newcp ['httpslogin ' ]);
261
264
$ newcp ['httpsname ' ] = $ _POST ['httpsname ' ];
262
265
$ newcp ['preauthurl ' ] = $ _POST ['preauthurl ' ];
263
266
$ newcp ['peruserbw ' ] = $ _POST ['peruserbw ' ] ? true : false ;
You can’t perform that action at this time.
0 commit comments