From patchwork Tue May 30 11:13:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 6919 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 "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4QVqXD47XYz3wlp for ; Tue, 30 May 2023 11:13:48 +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 "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4QVqXC3HqkzLb; Tue, 30 May 2023 11:13:47 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4QVqXC2Pmqz2yjS; Tue, 30 May 2023 11:13:47 +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 "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4QVqXB1BTrz2xd1 for ; Tue, 30 May 2023 11:13:46 +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) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4QVqX93qxVzLb; Tue, 30 May 2023 11:13:45 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1685445225; 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; bh=4q0eib27HEwmIo/JmyFGrIhTbX+iLc9SGuhW21pIh3Y=; b=EXOl/oatBTQ8wGez7XnuBCXg9NPCwnACHoCIojdWfbjNDY9v3Z7aIY6BnKA5dM9OJDuRNv nC/O9Bt5dBO1+JBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1685445225; 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; bh=4q0eib27HEwmIo/JmyFGrIhTbX+iLc9SGuhW21pIh3Y=; b=TLxMvox/Nh5x6Ho0e3B8UtCvlzck0TZ787KaLYwytsWKz8gHCmU3FXmE5KXh6C6gw07fRO s1aFwFpltUI7XkKDmwns6IrCDjwsvdJdT9oEKRhPXkPwO+z1hVrsJ1vHXfmFZGa3LdJZ9u o9egQBLM/6wEbdI6yPEg9CuUNZ8JZNgc/VvDKT7GoseJps1qYn7ZjJVE7fR5XOLyt0MFYL +eJKUL1L9WpWUFpCdC59tlCDdaOvW/BuJCrfcprwT6KLBILg0ZWsQFz4z9b+1AIPjQvViw 6QdFbXS6UsZZuTbpEW8PxtDRVYKTduQnp4zr+hztvTPldtpR8htWu/YVyESrHA== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] ovpnmain.cgi: Fix Bug#13136 - Allow spaces when editing a static ip address pool name Date: Tue, 30 May 2023 13:13:41 +0200 Message-Id: <20230530111341.7511-1-adolf.belka@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: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - This was fixed for creating a static ip address pool name in bug#12865 but was not applied to the case when the static ip address pool name was being edited. - This fix corrects that oversight. Fixes: Bug#13136 Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- html/cgi-bin/ovpnmain.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 5c4fad0a5..0df9fcc8c 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -494,7 +494,7 @@ sub modccdnet my %ccdhash=(); # Check if the new name is valid. - if(!&General::validhostname($newname)) { + if(!&General::validccdname($newname)) { $errormessage=$Lang::tr{'ccd err invalidname'}; return; }