From patchwork Tue Oct 13 16:07:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 3532 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4C9gSq5Q87z3x1S for ; Tue, 13 Oct 2020 16:08:27 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4C9gSj4lt8z1GX; Tue, 13 Oct 2020 16:08:21 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4C9gSh4wdbz303l; Tue, 13 Oct 2020 16:08:20 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4C9gSf1p48z2xb4 for ; Tue, 13 Oct 2020 16:08:18 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 4C9gSf0pgnzlb; Tue, 13 Oct 2020 16:08:18 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1602605298; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6Rm9OEJukiGqKOPanBZXSwG6JXmly2+5mW5Ceqrfc6I=; b=6KIkGPcBEDrOiqHXF1wJ8I9+1kGgk/fzaRxFa8TTN2h+6LDITf8rWTKfAwW8TUenCqQ8Xe Mqoo5QVlxPJv20DA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1602605298; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6Rm9OEJukiGqKOPanBZXSwG6JXmly2+5mW5Ceqrfc6I=; b=Pm/CF/KoTJHzc+aeMvC5EB+gn3RFGYw/rJPAu1OrzWQQJayP1w606E/4UG2uc8V2kyetFQ b1TrXBFwryIWRFscss86pSV75CNfMTTPUdXQXsI083ttREkryia7Vidq0Vd2ABQpQUIbMg veZRVbQBRkevC49IQgreGJcHSPrlGwNjvJRkYhch00FKah9Eg40UOkQ4Qez6mQqMgwfPpj Cn2q+MiNV8ArBsaOGuwlHFZgdIg2dlBEpHFfJay66bn8I2xnBxuZcDGSs5jIqDAlJyxNM/ jXkFtZ6nWpEQ+VYRkTEJXxrW2nUCI1ovvB5AoRzVSc1aKTlKEDZvy43307orCQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 06/54] samba: Correctly escape status output Date: Tue, 13 Oct 2020 16:07:24 +0000 Message-Id: <20201013160812.27754-6-michael.tremer@ipfire.org> In-Reply-To: <20201013160812.27754-1-michael.tremer@ipfire.org> References: <20201013160812.27754-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer --- html/cgi-bin/samba.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/samba.cgi b/html/cgi-bin/samba.cgi index 634f6adb5..981d5dcbe 100644 --- a/html/cgi-bin/samba.cgi +++ b/html/cgi-bin/samba.cgi @@ -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/
/g; +$Status = &Header::cleanhtml($Status); my $userentry = ""; my @user = ();