GNU bug report logs - #77776
31.0.50; rfc6068-parse-mailto-url may fail with inhibit-eol-conversion

Previous Next

Package: emacs;

Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>

Date: Sun, 13 Apr 2025 11:10:05 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Subject: bug#77776: closed (Re: bug#77776: 31.0.50; rfc6068-parse-mailto-url
 may fail with inhibit-eol-conversion)
Date: Sat, 19 Apr 2025 14:24:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#77776: 31.0.50; rfc6068-parse-mailto-url may fail with inhibit-eol-conversion

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 77776 <at> debbugs.gnu.org.

-- 
77776: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77776
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Cc: 77776-done <at> debbugs.gnu.org
Subject: Re: bug#77776: 31.0.50;
 rfc6068-parse-mailto-url may fail with inhibit-eol-conversion
Date: Sat, 19 Apr 2025 17:22:59 +0300
> Date: Sun, 13 Apr 2025 20:08:20 +0900
> From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
> 
> Following code returns unexpected result.
> 
> (let ((inhibit-eol-conversion t))
>   (require 'rfc6068)
>   (rfc6068-parse-mailto-url
>    (concat "mailto:infobot <at> example.com?body="
> 	   "send%20current-issue%0D%0Asend%20index")))
> 
> -> (("To" . "infobot <at> example.com") ("Body" . "send current-issue^M
> send index"))
> 
> Expected result is
> 
> -> (("To" . "infobot <at> example.com") ("Body" . "send current-issue
> send index"))
> 
> Furthermore, if URL contains "%0D%0A" and "%0A", though it is not
> compliant with RFC 6068, "%0D%0A" may be decoded  CRLF, not LF.

Thanks, installed on the master branch, and closing the bug.

[Message part 3 (message/rfc822, inline)]
From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; rfc6068-parse-mailto-url may fail with inhibit-eol-conversion
Date: Sun, 13 Apr 2025 20:08:20 +0900
[Message part 4 (text/plain, inline)]
Following code returns unexpected result.

(let ((inhibit-eol-conversion t))
  (require 'rfc6068)
  (rfc6068-parse-mailto-url
   (concat "mailto:infobot <at> example.com?body="
	   "send%20current-issue%0D%0Asend%20index")))

-> (("To" . "infobot <at> example.com") ("Body" . "send current-issue^M
send index"))

Expected result is

-> (("To" . "infobot <at> example.com") ("Body" . "send current-issue
send index"))

Furthermore, if URL contains "%0D%0A" and "%0A", though it is not
compliant with RFC 6068, "%0D%0A" may be decoded  CRLF, not LF.

-- 
Kazuhiro Ito
[0001-Fix-rfc6068-parse-mailto-url-with-inhibit-eol-conver.patch (text/plain, attachment)]

This bug report was last modified 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.