]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
samba: Correctly escape status output
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Oct 2020 15:52:34 +0000 (16:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 13 Oct 2020 16:06:15 +0000 (17:06 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/samba.cgi

index 634f6adb5f04d5a62ec725e17fc88414824740ca..981d5dcbea88eb3fc1be5f7ea166caf99562bf10 100644 (file)
@@ -42,7 +42,7 @@ my @Logs = qx(ls /var/log/samba/);
 my $Log =$Lang::tr{'no log selected'};
 
 my $Status = qx(/usr/local/bin/sambactrl smbstatus);
-$Status=~s/\n/<br \/>/g;
+$Status = &Header::cleanhtml($Status);
 
 my $userentry = "";
 my @user = ();