From: Eli Zaretskii <eliz@gnu.org>
To: ozzloy <ozzloy@gmail.com>
Cc: 63941@debbugs.gnu.org
Subject: bug#63941: [PATCH] ; always CRLF before non-first boundary in multipart form
Date: Wed, 07 Jun 2023 15:30:59 +0300 [thread overview]
Message-ID: <837csf4fp8.fsf@gnu.org> (raw)
In-Reply-To: <CACT2Oni7VRQZLazJXWwPVRw1TZ3tM84UXiexVCuu2Bbp0QTAOQ@mail.gmail.com> (message from ozzloy on Tue, 6 Jun 2023 22:25:40 -0700)
> From: ozzloy <ozzloy@gmail.com>
> 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.
next prev parent reply other threads:[~2023-06-07 12:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-07 5:25 bug#63941: [PATCH] ; always CRLF before non-first boundary in multipart form ozzloy
2023-06-07 12:30 ` Eli Zaretskii [this message]
2023-06-08 2:48 ` ozzloy
2023-06-08 6:09 ` Eli Zaretskii
2023-06-08 6:43 ` ozzloy
2023-06-08 6:52 ` ozzloy
2023-06-10 9:42 ` Eli Zaretskii
2023-06-11 1:38 ` ozzloy
2023-06-18 23:23 ` ozzloy
2023-06-19 16:13 ` Eli Zaretskii
2023-06-22 16:49 ` ozzloy
2023-06-22 18:25 ` ozzloy
2023-06-22 18:29 ` Eli Zaretskii
2023-06-23 8:22 ` ozzloy
2023-07-18 19:04 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-21 9:04 ` ozzloy
2023-08-29 0:28 ` ozzloy
2023-12-02 15:03 ` ozzloy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=837csf4fp8.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=63941@debbugs.gnu.org \
--cc=ozzloy@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).