From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63941: [PATCH] ; always CRLF before non-first boundary in multipart form Date: Wed, 07 Jun 2023 15:30:59 +0300 Message-ID: <837csf4fp8.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11240"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63941@debbugs.gnu.org To: ozzloy Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 07 14:33:50 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6sMH-0002h0-Oj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Jun 2023 14:33:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6sLx-0003aS-D7; Wed, 07 Jun 2023 08:33:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6sKY-0002wj-Kf for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2023 08:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6sKY-0006ql-B8 for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2023 08:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6sKX-0005u5-K9 for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2023 08:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Jun 2023 12:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63941 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63941-submit@debbugs.gnu.org id=B63941.168614106722628 (code B ref 63941); Wed, 07 Jun 2023 12:32:01 +0000 Original-Received: (at 63941) by debbugs.gnu.org; 7 Jun 2023 12:31:07 +0000 Original-Received: from localhost ([127.0.0.1]:53729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6sJe-0005su-U1 for submit@debbugs.gnu.org; Wed, 07 Jun 2023 08:31:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6sJb-0005sP-A6 for 63941@debbugs.gnu.org; Wed, 07 Jun 2023 08:31:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6sJU-0006dF-Hb; Wed, 07 Jun 2023 08:30:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=VTO3M2Y2a2bgXhncLYMm2O+WCukX2PgL4wwT3oqkx4E=; b=N69UBe0vxXnG d91H85ynLdNCvIxzRyU2KACSzpD7FvgtsY44JS0iuLLeQE305ff27nolZNbd6jsGcDSA3pPoi8ecJ Np0q6tP4kZvPj1H6gkA7X/ZvJNTmQ/8EFq25X4bp9e9+IdK/XowmxU9DdlVXHYdxEKoRC7LzCO5ZN 06kLd6XY/6ZtpM8KuCf8GkxFSLjQb8IDEEwVk4G8drvGNBDqbTcFbeEmo+wKEYAv1Uy1iwvtICJwc 913MzAUBNQKtESSUPk/9SaBDT9rD6JVH3Swtb4IsNvnWxwhXcHzEa5LBBralahyBU+xSptEu9Ct24 JRhdvQbJ0A+e6ahFRslWNg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6sJU-0005lI-0q; Wed, 07 Jun 2023 08:30:56 -0400 In-Reply-To: (message from ozzloy on Tue, 6 Jun 2023 22:25:40 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263069 Archived-At: > From: ozzloy > Date: Tue, 6 Jun 2023 22:25:40 -0700 > > When I POST a file ending with a newline using EWW, the final newline > gets chomped off of the content. This is because > mm-url-encode-multipart-form-data inserts CRLF unless it is at the > beginning of a line. For file uploads, this behavior is incorrect. > > To reproduce, > > 0. Upload a file ending in "\n" using EWW. > > 1. Observe the POST does not have CRLF between the file content and the > boundary. Thanks, but could you please describe in detail what should be done in step 0? how to "post a file using EWW"? We need the details to be sure we reproduce the same problem as you do, and also to test the solution and any alternatives.