mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
captive: Fix saving empty terms
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -97,7 +97,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save'}) {
|
||||
&General::writehash("$settingsfile", \%settings);
|
||||
|
||||
# Save terms
|
||||
if ($cgiparams{'TERMS'}){
|
||||
if ($settings{'AUTH'} eq 'TERMS') {
|
||||
$cgiparams{'TERMS'} = &Header::escape($cgiparams{'TERMS'});
|
||||
open(FH, ">:utf8", "/var/ipfire/captive/terms.txt") or die("$!");
|
||||
print FH $cgiparams{'TERMS'};
|
||||
|
||||
Reference in New Issue
Block a user