From patchwork Tue Mar 5 18:44:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 7594 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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Tq4H85nTXz3ww4 for ; Tue, 5 Mar 2024 18:44:36 +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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Tq4H06sQ4z2L0; Tue, 5 Mar 2024 18:44:28 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Tq4H02b0Jz32qT; Tue, 5 Mar 2024 18:44:28 +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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Tq4Gw0L5zz32q5 for ; Tue, 5 Mar 2024 18:44:24 +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 (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Tq4Gv5wm3zvC; Tue, 5 Mar 2024 18:44:23 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1709664263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=euLVgTcPtU99/pPNbCRWd2meOmsaX46aahZ5H6KxgUE=; b=/e1zaQha2jNUpWzCd3enegN4GSrlvpd1WMSwtKE3eHh9lh5yQRZrecEOOUNqL1hXzkGCoq 8/w/eho4t2pCONCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1709664263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=euLVgTcPtU99/pPNbCRWd2meOmsaX46aahZ5H6KxgUE=; b=qo1dbVpb0b63oV9xgmaOwA1ZYSXJrSZbYIT+fdl41D9i+2hy8veWbHuVbD6JZMDmsoFYGb 70nNjIy2SswHEEhGPiV6I5EuZlJFmkuKzKLjT0oeA4V9hlSv7USkjdj9h+oLdc4VOTUW+c Bg4RBEklwnUEhXd92yolLP/ix/QXGzXr+WwAx1CsFy1nNH41YsfDJEZdYBQftu04s7H+P/ LqsZR8Tmb0Kfxc2NHar8cgDpBbInrLyen308yMqPK6st5I6BkeLsF/HVQMmX0xC7LDXloU AeXgMcmdFLhKuGEXHfbUt5botBPx3YkGdUvSL83xXy0g4xLZ0SNsrICmo7ZGQw== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] ovpnmain.cgi: Remove cleanhtml command from Remark Date: Tue, 5 Mar 2024 19:44:16 +0100 Message-ID: <20240305184418.3431741-4-adolf.belka@ipfire.org> In-Reply-To: <20240305184418.3431741-1-adolf.belka@ipfire.org> References: <20240305184418.3431741-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: UFOEZYOJH4HO2YYENWWGRNYP2QKMI24L X-Message-ID-Hash: UFOEZYOJH4HO2YYENWWGRNYP2QKMI24L X-MailFrom: adolf.belka@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: - Using cleanhtml on Remarks means that all characters with diacritical marks such as umlauts or grave accents etc get encoded into other characters. - If Freifunk München e.V. is entered as a remark it gets converted to Freifunk München e.V. - cleanhtml is only removed from Remarks or Comment fields. In other places it has been left in place. Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- html/cgi-bin/ovpnmain.cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index c92d0237d..d3680271a 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2023 IPFire Team # +# Copyright (C) 2013-2024 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -3613,7 +3613,6 @@ if ($confighash{$cgiparams{'KEY'}}) { $cgiparams{'TLSAUTH'} = $confighash{$cgiparams{'KEY'}}[41]; $cgiparams{'OTP_STATE'} = $confighash{$cgiparams{'KEY'}}[43]; } elsif ($cgiparams{'ACTION'} eq $Lang::tr{'save'}) { - $cgiparams{'REMARK'} = &Header::cleanhtml($cgiparams{'REMARK'}); #A.Marx CCD check iroute field and convert it to decimal if ($cgiparams{'TYPE'} eq 'host') {