From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 5513D971E for ; Fri, 18 Nov 2022 02:40:11 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3B95A3245D for ; Fri, 18 Nov 2022 02:39:41 +0100 (CET) Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Fri, 18 Nov 2022 02:39:40 +0100 (CET) Received: by mail-qv1-f52.google.com with SMTP id j6so2445769qvn.12 for ; Thu, 17 Nov 2022 17:39:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B3q3uAsjdmEyAofBxL0uSktfCy8Elmq+pfl3HcU0DfA=; b=1cD0BnLNNj6Lx0sSUSyC/bA3gegQ8LBt+tRk1OD++QRMbj0rnlGJihGnoQhnGr2qzA eS7FuiFaTrSMyF9CjStSQ5GgxEuhGXieDrxIG4WUpNcrn+AsXRYmz+ABJ/QSgI/mtpFR HGsP+10u5PaW72Yb+YryTpHFrwFoW2W0K5rNF78Eys60H34BYKX5HpQ0AdzmR7NHURAY DQ6O+3ssuZEqgrvkT35iIwDizkVxTATA5cJ1+hxZMUHjtjI/tpHrLoZjayLq5jChQTpV XrjTRIrVjNfmDX1fF6VUaZ6Ee52107lg4u84xDWC0xdaCxjbkJfFN+nTguZMQ2UjXhmN gM3A== X-Gm-Message-State: ANoB5pm/bk+RHNozX/cWR96902gs/scnXLZw06kGS8iqrB4ViHlkRjP/ F/Lx9H3aONPc3q+3aL045xH56bRl39LvOg== X-Google-Smtp-Source: AA0mqf6GYMfNCetFZWE19V3syaPOJBcttIDWA/7i1fBIs6/QU8NNmUUQzj/UaLXGH/xZfLF6yev6Lw== X-Received: by 2002:a05:6214:301:b0:4bb:59f1:b6f9 with SMTP id i1-20020a056214030100b004bb59f1b6f9mr5073863qvu.17.1668735573085; Thu, 17 Nov 2022 17:39:33 -0800 (PST) Received: from smtprelay.homelab.johnhollowell.com (cpe-76-182-68-238.nc.res.rr.com. [76.182.68.238]) by smtp.gmail.com with UTF8SMTPSA id de13-20020a05620a370d00b006e99290e83fsm1574490qkb.107.2022.11.17.17.39.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 17 Nov 2022 17:39:32 -0800 (PST) Received: from localhost.localdomain ([10.50.0.102]) by smtprelay.homelab.johnhollowell.com with ESMTP; Thu, 17 Nov 2022 20:39:31 -0500 (EST) From: John Hollowell To: pve-devel@lists.proxmox.com Cc: John Hollowell Date: Fri, 18 Nov 2022 01:39:11 +0000 Message-Id: <20221118013911.2655-3-jhollowe@johnhollowell.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221118013911.2655-1-jhollowe@johnhollowell.com> References: <20221118013911.2655-1-jhollowe@johnhollowell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: =?UTF-8?Q?0=0A=09?=AWL 0.062 Adjusted score from AWL reputation of From: =?UTF-8?Q?address=0A=09?=BAYES_00 -1.9 Bayes spam probability is 0 to 1% FREEMAIL_FORGED_FROMDOMAIN 0.001 2nd level domains in From and EnvelopeFrom freemail headers are =?UTF-8?Q?different=0A=09?=FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail =?UTF-8?Q?provider=0A=09?=HEADER_FROM_DIFFERENT_DOMAINS 0.25 From and EnvelopeFrom 2nd level mail domains are =?UTF-8?Q?different=0A=09?=KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict =?UTF-8?Q?Alignment=0A=09?=RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no =?UTF-8?Q?trust=0A=09?=SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF =?UTF-8?Q?Record=0A=09?=SPF_PASS -0.001 SPF: sender matches SPF =?UTF-8?Q?record=0A=09?=URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [anyevent.pm] Subject: [pve-devel] [PATCH v2 http-server 2/2] Remove whitespace ignore from regex X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2022 01:40:11 -0000 Signed-off-by: John Hollowell --- src/PVE/APIServer/AnyEvent.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PVE/APIServer/AnyEvent.pm b/src/PVE/APIServer/AnyEvent.pm index d958642..ed1321d 100644 --- a/src/PVE/APIServer/AnyEvent.pm +++ b/src/PVE/APIServer/AnyEvent.pm @@ -1214,9 +1214,7 @@ sub file_upload_multipart { $extract_form_disposition->('checksum-algorithm'); $extract_form_disposition->('checksum'); - if ($hdl->{rbuf} =~ - s/^${delim_re}Content-Disposition:\ (.*?);\ name="(.*?)";\ filename="([^"]+)"//sxx - ) { + if ($hdl->{rbuf} =~ s/^${delim_re}Content-Disposition: (.*?); name="(.*?)"; filename="([^"]+)"//s) { assert_form_disposition($1); die "wrong field name '$2' for file upload, expected 'filename'" if $2 ne "filename"; $rstate->{phase} = 2; -- 2.30.2