From unknown Fri Jun 20 07:24:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#78640 <78640@debbugs.gnu.org> To: bug#78640 <78640@debbugs.gnu.org> Subject: Status: elisp url.el cannot handle some valid URLs Reply-To: bug#78640 <78640@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:24:11 +0000 retitle 78640 elisp url.el cannot handle some valid URLs reassign 78640 emacs submitter 78640 =E6=9E=97=E7=BE=BD <0713ws@gmail.com> severity 78640 normal tag 78640 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 29 23:58:23 2025 Received: (at submit) by debbugs.gnu.org; 30 May 2025 03:58:23 +0000 Received: from localhost ([127.0.0.1]:42764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uKqsw-0005Rc-TZ for submit@debbugs.gnu.org; Thu, 29 May 2025 23:58:23 -0400 Received: from lists.gnu.org ([2001:470:142::17]:48310) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <0713ws@gmail.com>) id 1uKpwM-0000GN-7W for submit@debbugs.gnu.org; Thu, 29 May 2025 22:57:51 -0400 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 <0713ws@gmail.com>) id 1uKpwG-0007jT-F7 for bug-gnu-emacs@gnu.org; Thu, 29 May 2025 22:57:44 -0400 Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <0713ws@gmail.com>) id 1uKpwE-0000yb-Ta for bug-gnu-emacs@gnu.org; Thu, 29 May 2025 22:57:44 -0400 Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-6face1d58dcso9294186d6.2 for ; Thu, 29 May 2025 19:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748573861; x=1749178661; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=519AlziEinP9Mg8IpSIIlTwOJDW2HzBPUL7Wt/FauGM=; b=mfVYXk8GNrGbHqoycWrvTsNACF1WoqhmkTZ1cb3+Wkx1ZHY94mit2n9eUwXwdx2swB qKxZsFu4YCOMYkqaR2ERjkUA2ADKxlvsJRmX2+hRkrLGDkKkYPKPWyqos1sW+kXja9KS x6fjPi23oWwF+lN9cqHt2iyJhFA35X/7pUCR+nGIhuZiMpVd9FGWob8enz4YI1HrP534 A5xUlFX4s1rGuzePYX1Fdfkgobjet7hA+Gry8roElQtff8ZgggwkoQvj6PoDX8J9MkOY IubfHT5UtcceSEydL1iKRc2w9E1G+xiAf9r0aQ98uqAjc8Q0DTZnf5HhXy/wealkK5lZ BqmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748573861; x=1749178661; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=519AlziEinP9Mg8IpSIIlTwOJDW2HzBPUL7Wt/FauGM=; b=vLwbEgHKKYAbmeZVPbhftV09YX+XgCVN9pCOplQf+XuRvO0mHtoWYWwin9Jd/F4Pzm p6W54bhbMHUvB9OByeoQqcf7aImEhJ0+FymQKoTus9BRTP/zrnrfQ+cfpS6q4KaARasc oJfgNnLIO2Ct2aLKvRnGYKq8AIXvr/7mZbiGhpZMEyGxmFnI0Fz0fxPe/TLTaTsjBOKW 6PIE/ycxbBzgUPiqFS8jL4aOYic+6+UXxcgerJCx7JcyOTYH8ejH/RDm1QgHGAWJ4ybC UcXu4f4Gh0Pv5g8SkF3j4oU3JdumboYDwqglBeuz1Rs9E73CFcasrwaUpwygy+1qcO3m fnFg== X-Gm-Message-State: AOJu0YyWV2kzFgpew6aOvc2WWGfDjUAqgzAbnAntUj6iSm1rl6vf/8Xe 2hBmWP99gEI5w5XgRnmzucMgD0RHwJyHHT8S5e+hqjC8xyRH+4izk5YBspehSOOcMJh3QnZrTyX i1b+HNGZiv3Rcg24wGN8QaVjypKNoLCyDI2Jq X-Gm-Gg: ASbGncvaFdewDct0Z/d03/ziafBmj4JdJkXdY/5Y0PBSSjVegKmuYWbwZqNb/3mABZ5 oRhjVe8X5QLRMNqmX4Iv5hATuyQKPqtMIMTvCzJfA6WOmC5QoWmp0fpf/Bil+ENopK5/D5zJ695 bwfkn8KRrEObcURgT1AaMUAIqh2YEZQME= X-Google-Smtp-Source: AGHT+IFGtLyyKFjhRtCD2VLnHqrleZ02z2Mn6t98qfeFtF9zIp8mV6EqsUe1rUcbJaOriNMa3/dsRZqRDmbRkRea+IQ= X-Received: by 2002:a05:6214:5293:b0:6fa:c41e:ccee with SMTP id 6a1803df08f44-6fad1919ebbmr9166206d6.19.1748573860803; Thu, 29 May 2025 19:57:40 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?5p6X5769?= <0713ws@gmail.com> Date: Fri, 30 May 2025 10:57:26 +0800 X-Gm-Features: AX0GCFufOvFArni1PDHXdnN11DO6FtjdmFPIcxYtIfkHB8lV93Z2U-a6hVYjRkY Message-ID: Subject: elisp url.el cannot handle some valid URLs To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000d63d4d0636519382" Received-SPF: pass client-ip=2607:f8b0:4864:20::f2a; envelope-from=0713ws@gmail.com; helo=mail-qv1-xf2a.google.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_STARTS_WITH_NUMS=0.738, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: (url-insert-file-contents “http://127.0.0.1:9999?test=1 ”) GET ?test=1 HTTP/1.1 MIME-Version: 1.0 Connection: keep-alive Host: 127.0.0.1:9999 Accept-encoding: gzip Accept: */* User-Agent: URL/Emacs Emacs/31.0.50 (TTY; x86_64-suse-linux-gnu) Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.6 FROM_STARTS_WITH_NUMS From: starts with several numbers -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (0713ws[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 NUMERIC_HTTP_ADDR URI: Uses a numeric IP address in URL 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP 0.0 HTML_MESSAGE BODY: HTML included in message 0.0 HTML_FONT_LOW_CONTRAST BODY: HTML font color similar or identical to background -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 29 May 2025 23:58:20 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --000000000000d63d4d0636519382 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (url-insert-file-contents =E2=80=9Chttp://127.0.0.1:9999?test=3D1 =E2=80=9D) GET ?test=3D1 HTTP/1.1 MIME-Version: 1.0 Connection: keep-alive Host: 127.0.0.1:9999 Accept-encoding: gzip Accept: */* User-Agent: URL/Emacs Emacs/31.0.50 (TTY; x86_64-suse-linux-gnu) Should it be /?test=3D1=EF=BC=8C Missing "/" This url complies with the RFC= 3986 standard and can be handled normally in tools such as curl --000000000000d63d4d0636519382 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

(url-insert-file-contents =E2=80=9Chttp://127.0.0.1:9999?test=3D1= =E2=80=9D)=C2=A0

GET ?test=3D1 HTTP/1.1 MIM= E-Version: 1.0 Con= nection: keep-alive Hos= t= : 127.0.0.1:9999 Acc= ept-encoding: gzip Acc= ept*/* Use= r-Agent: URL/Emacs Emacs/31.0.50 (TTY; x86_64-suse-linux= -gnu)

Should it be /?test=3D1=EF=BC=8C=C2=A0Missing "/"= ;=C2=A0T= his url complies with the RFC 3986 standard and can be handled normally in = tools such as curl

--000000000000d63d4d0636519382-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 31 11:12:47 2025 Received: (at 78640) by debbugs.gnu.org; 31 May 2025 15:12:47 +0000 Received: from localhost ([127.0.0.1]:58886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uLNt8-0003OU-OP for submit@debbugs.gnu.org; Sat, 31 May 2025 11:12:47 -0400 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]:53345) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <0713ws@gmail.com>) id 1uLNt5-0003Nw-PX for 78640@debbugs.gnu.org; Sat, 31 May 2025 11:12:44 -0400 Received: by mail-qv1-xf31.google.com with SMTP id 6a1803df08f44-6fadb9a0325so4202086d6.2 for <78640@debbugs.gnu.org>; Sat, 31 May 2025 08:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748704358; x=1749309158; darn=debbugs.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=GHGLukBP8HtoMYcc6behDlneryOYBMTP7IZNrTqMGk0=; b=BBhuycZ6maiKyQCeF+aLlG4uOekY8QabK/3X2A6y3zL+mWqQYxJqK4RrEkM9weLgcx SclcYO7Is4LY2nuan1Gk4oznWulkp/5kMPkU0VMbsxZBp3xCnPMAXtMbrA6YYx8HcxCJ IqmGJ+9pVKPRBkUaDTdJwZDwTmzUDtod4hZNOXWgm9Yu4HHZpfOnPKj0ST4KNkec1SWL yXTJzpYjqYhhuRU3giUMRirHwqQxQyOpSI8iFM9YYhDNOgjuI/wN0iinyODr8REAaE4R j7ONW19gebLGqPFmy0229HoLBiZDPi6AXl/ulQQYTfZpUsDDL/HFqkj9eSukbX90CVdC /h+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748704358; x=1749309158; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=GHGLukBP8HtoMYcc6behDlneryOYBMTP7IZNrTqMGk0=; b=iVQwZM0Gbcnda8aAGtKv/ldeyHnvHaTy3Yc3qG9jYLy/4sNGdq9BHC8E1S6h7dAs7e 6D3juwuXnq+OMlXTCmopPDkiDTcWOcqeLRNjKf+DBzAVGoMbkkO03jcC9/F+xc+AB1ID EcCUB0XotJLq81kneXaGyxzJDlQouv4gVI6B1AFEoRJdMhAIioJPJ6wcwEohs1WTK9VK 6xrBKK7R/hkPf3qVYAwJG7ZLk/kq/VGxEoRrm7PY4A6XTTo+n6oitzY48hMcI+8faEnG /4IEFHHLctw9/pjG47nuhyMqEj2uazDvIbi1bd2/Fs9iFaaltgjNBAyzvSCxZbKejtuW JYqA== X-Gm-Message-State: AOJu0Yx8l/U5d/3wOcHQ12ybD6M2hSOR1xkVhVUv40HHwENrUCDMw2fw 1qH4GRP2TKa/ZNIZbIu3/bRYYkqz+UfAVW8JMF+MKeFxwvyx7spiRLGwu0tezsN3BJQ2IcnTIzG mt8qXDgtw+t6N25+RRPQzZvgnIis/MG7YZs6UwWI= X-Gm-Gg: ASbGncsEohvUfPGn2ubS+CUrYSPLxU19HJ1BfQSzMhb62QK/ibdGRQJ/o35d6IBMivf 8RdMS2lVXqJzbbihf158WB9gu0QTFFb94ZVmXNGhWOAz51puxrbT8q/mg2q1UMdxgrh4FhIxKqL welTn5OA0c37oQS6DDcv+dvnCU1axiRtxvEw== X-Google-Smtp-Source: AGHT+IE1Lf5c1DGku6V3JjAEQf1t/dSWvHPU03blO5dc+IvY5jgoQsUb1SVsJwdvb6KohQS3OIZ0Oqra56mwZNi2lC8= X-Received: by 2002:a05:6214:2a8a:b0:6fa:c6c0:47da with SMTP id 6a1803df08f44-6fad1ac76c2mr101312796d6.42.1748704357753; Sat, 31 May 2025 08:12:37 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?5p6X5769?= <0713ws@gmail.com> Date: Sat, 31 May 2025 23:12:26 +0800 X-Gm-Features: AX0GCFtYXc6CkIyQd2UCxZdvw5IgSYlcJ3bhgQjgZ7dr8ZyeeeJ10ix4aFEa0Kk Message-ID: Subject: To: 78640@debbugs.gnu.org Content-Type: multipart/alternative; boundary="0000000000000fa9e906366ff69d" X-Spam-Score: 3.7 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: More description about this issue https://emacs-china.org/t/elisp-url-bug/29576 ,I hope that lisp can handle URLs in the same way as other tools. More description about this issue https://emacs-china.org/t/elisp-url-bug/29576 ,I hope that lisp can handle URLs in the same way as other tools. Content analysis details: (3.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.6 FROM_STARTS_WITH_NUMS From: starts with several numbers 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (0713ws[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HTML_MESSAGE BODY: HTML included in message 1.2 HTML_OBFUSCATE_10_20 BODY: Message is 10% to 20% HTML obfuscation -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:f31 listed in] [list.dnswl.org] 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: 78640 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.7 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: More description about this issue https://emacs-china.org/t/elisp-url-bug/29576 ,I hope that lisp can handle URLs in the same way as other tools. More description about this issue https://emacs-china.org/t/elisp-url-bug/29576 ,I hope that lisp can handle URLs in the same way as other tools. Content analysis details: (2.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:f31 listed in] [list.dnswl.org] 0.6 FROM_STARTS_WITH_NUMS From: starts with several numbers 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (0713ws[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HTML_MESSAGE BODY: HTML included in message 1.2 HTML_OBFUSCATE_10_20 BODY: Message is 10% to 20% HTML obfuscation 2.0 BLANK_SUBJECT Subject is present but empty -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --0000000000000fa9e906366ff69d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable More description about this issue https://emacs-china.org/t/elisp-url-bug/29576 =EF=BC=8CI hope that lisp ca= n handle URLs in the same way as other tools. --0000000000000fa9e906366ff69d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
More description about this issue https://emacs-china.org/t/elisp-url-bug/2= 9576=C2=A0 =EF=BC=8CI hope that lisp can handle URLs in the same way as= other tools.
--0000000000000fa9e906366ff69d-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 07 04:53:27 2025 Received: (at 78640) by debbugs.gnu.org; 7 Jun 2025 08:53:27 +0000 Received: from localhost ([127.0.0.1]:46863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uNpIt-0000ll-CB for submit@debbugs.gnu.org; Sat, 07 Jun 2025 04:53:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57456) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uNpIr-0000lW-6e for 78640@debbugs.gnu.org; Sat, 07 Jun 2025 04:53:25 -0400 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 1uNpIl-0006Ng-Sd; Sat, 07 Jun 2025 04:53:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=QscyHzukvx6e2ejZHAV3k0DSC8JA2drn1VpoLQAa1DE=; b=A5W3TF/duDsgaJp01Ktc GzWdlFrfSXxGAjtKhdctFy+vA2ntjQxoUZxwK/4gE0hbto9+Cqb8Re8wcEO4MyXdOrs12+tCR/f3M 44/DCSeI2yAc38/VWAaKEDjyTWcO5zLcDkddPLeCg4hLg62fKa8rDN6iA2aeasfL5OuTe3HYDvKU0 0sguEVuO1/cFubbNvRUItLNJOKNREZig4BjeVfmnIE5GKyL7tHBdbWJpTEZjOOYnvCGZA+IZyQqy9 Lg/yetZPzX2JVQusJwJ6SVRYQbMcdzkmR+nxEtpcfC9E/1GwTN/mqRXKNkEhO42/bQk4tUxDAnN+C QIEVErLtG18Lww==; Date: Sat, 07 Jun 2025 11:53:17 +0300 Message-Id: <86ldq4hr0i.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?5p6X5769?= <0713ws@gmail.com>, Robert Pluim In-Reply-To: (message from =?utf-8?B?5p6X5769?= on Fri, 30 May 2025 10:57:26 +0800) Subject: Re: bug#78640: elisp url.el cannot handle some valid URLs References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78640 Cc: 78640@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: 林羽 <0713ws@gmail.com> > Date: Fri, 30 May 2025 10:57:26 +0800 > > (url-insert-file-contents “http://127.0.0.1:9999?test=1”) > > GET ?test=1 HTTP/1.1 MIME-Version: 1.0 Connection: keep-alive Host: 127.0.0.1:9999 Accept-encoding: > gzip Accept: */* User-Agent: URL/Emacs Emacs/31.0.50 (TTY; x86_64-suse-linux-gnu) > > Should it be /?test=1, Missing "/" This url complies with the RFC 3986 standard and can be handled > normally in tools such as curl Robert, any comments? From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 09 05:02:55 2025 Received: (at 78640) by debbugs.gnu.org; 9 Jun 2025 09:02:55 +0000 Received: from localhost ([127.0.0.1]:53872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uOYP9-0004Xg-6p for submit@debbugs.gnu.org; Mon, 09 Jun 2025 05:02:55 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:61871) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uOYP6-0004XN-CW for 78640@debbugs.gnu.org; Mon, 09 Jun 2025 05:02:52 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3a503d9ef59so3382815f8f.3 for <78640@debbugs.gnu.org>; Mon, 09 Jun 2025 02:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749459766; x=1750064566; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=yx7P42TdeAw0gIYNwriOi0gKJseEjOZEmT+gMT+7OMA=; b=DDdPs/O1A6Cc0lS466UX3dTovbJl2rGYrJK31f+kyQ825D1Z1VczDD0ogc1sAPRq3W TOMqJSg3AVEn4Fxj/eEf+HkgJzq5LKCpoZ/OjhnX+sBjAD2M2TerWmeD++LqrsQjG4xP wmMOTobt4SABvT37GVBfRGYAttUBRKjioGXJxMiSWaay7wAg7g5V8KxiPsHfNcYyoDhp Jpw8cF4y5BXiR1+19tFtwhf0ue5dcXjKlSsNV1LvNLNw/fbQko5AmnIgYryNhXyUGXVg TTItDyQVBECvqvszroVRs2hZFt44RUAfzM8cRJntxuQqmJHxi6oiS/LoCywdmsH5wMOj TNqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749459766; x=1750064566; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yx7P42TdeAw0gIYNwriOi0gKJseEjOZEmT+gMT+7OMA=; b=uaVxMFJc+7ho6zrgibatfUwEzOG27gU8SPX2AvlFw1U943xbOkEVTsg4jAEnHudjcu +4M9owDbyvX/N7jFwSKN3Hckz2RwPnik2DjkVUFjCvYPOUqzuEhEj2ufpLyt0AsTGmYa RNBZF6FflgzzGUDAya1yrVnMK6JVsmFae2rBccSWeKFn6RgbEbqLToGf1bWQcxZ/Xa7D lOfCvYvS7G1h51Fr0F78/SNsH1NkGr7am1DDpwgYl2kInTiYnEEyQoE4jYjwV7nk+peU P20WKiY9HUAqI6fUSYXTIbOGUsjHOWHaHb+9sDEMUPRL6cmP8Y4PotNYKkGsNQtWO5qv 8yWg== X-Forwarded-Encrypted: i=1; AJvYcCVYQcb80lMEfYtVH2eryqCGtIGKNyY2KIRdf+92mJdu9x1eAD1MKWcmVhuOISvYFJ9hmR6QpQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyyDUFhWnG706mo8n9wM3eMLIl/hvTS/FdOzKZFrC3Lu91VWi3+ p7AuGeL1xoMmIj4FgZoEP9IMvRuiibopqcv6twlqSgtBkua8dLGEsVDSTmWMlGkl X-Gm-Gg: ASbGnctqPzyGjrVE8E6JBoAQEsvKrxS0wQYm8N5AKy3ush5yRH8XvMQW9dlUszRQje8 o71mIKidbApvXz9jI7wqN8ZFYOmnugKgO+Mao9CwMwYcfw4Ydh7HS9346AdZT0PD3SBDGXSlN97 xzeNIIXa/YZo/O2h4EA9xquJNdrdRBDDM3zxKK4eOtE/shBtFGrcwp3iZRgdkr6zLlz9HdY6WTo OH2m08dkdfmnASSNF0E+Fmhrez3Koxi+uX7DJVUzaiP9W8RB6bervScQpLtcZI92tap+YuS+9ND y0Z3WVmo91VvpwzwRTpYkL0PpW6N4Q04Jso+nw== X-Google-Smtp-Source: AGHT+IGRUjzSYy5H7M3pGreEOw2zmPOv6CF6sNIqQEgTpCgbDypY8wUV0ub8UncncFzS7fCY3+Aa2A== X-Received: by 2002:a05:6000:2382:b0:3a5:300d:ead0 with SMTP id ffacd0b85a97d-3a531cdd5a0mr9762726f8f.43.1749459765727; Mon, 09 Jun 2025 02:02:45 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb51:5c8d:25ac:a59:60fb]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45209bc6c6csm105627595e9.2.2025.06.09.02.02.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jun 2025 02:02:45 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#78640: elisp url.el cannot handle some valid URLs In-Reply-To: <86ldq4hr0i.fsf@gnu.org> References: <86ldq4hr0i.fsf@gnu.org> Date: Mon, 09 Jun 2025 11:02:44 +0200 Message-ID: <87jz5l8eyz.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78640 Cc: 78640@debbugs.gnu.org, =?utf-8?B?5p6X5769?= <0713ws@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Sat, 07 Jun 2025 11:53:17 +0300, Eli Zaretskii said: >> From: =E6=9E=97=E7=BE=BD <0713ws@gmail.com> >> Date: Fri, 30 May 2025 10:57:26 +0800 >>=20 >> (url-insert-file-contents =E2=80=9Chttp://127.0.0.1:9999?test=3D1=E2= =80=9D)=20 >>=20 >> GET ?test=3D1 HTTP/1.1 MIME-Version: 1.0 Connection: keep-alive Host= : 127.0.0.1:9999 Accept-encoding: >> gzip Accept: */* User-Agent: URL/Emacs Emacs/31.0.50 (TTY; x86_64-su= se-linux-gnu) >>=20 >> Should it be /?test=3D1=EF=BC=8C Missing "/" This url complies with = the RFC 3986 standard and can be handled >> normally in tools such as curl Eli> Robert, any comments? Yes, an empty path there should be replaced with "/" when we issue the command. Fixing the http case is easy enough, but similar changes are probably required for other schemes. Patch below. Changing the url parsing code to return "/?test=3D1" would probably work as well, but that would be a much bigger and riskier change (and we don=CA=BCt have any tests for this stuff). Robert --=20 diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 4258da33a33..5a8279a4122 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el @@ -325,8 +325,12 @@ url-http-create-request url-http-target-url) nil 'any nil))) (ref-url (url-http--encode-string url-http-referer))) - (if (equal "" real-fname) - (setq real-fname "/")) + (cond ((equal "" real-fname) + (setq real-fname "/")) + ;; RFC 3986 section 6.2.3 says an empty path should be + ;; normalized to "/". (Bug#78640) + ((not (eq (aref real-fname 0) ?/)) + (setq real-fname (concat "/" real-fname)))) (setq no-cache (and no-cache (string-match "no-cache" no-cache))) (if auth (setq auth (concat "Authorization: " auth "\r\n"))) From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 09 06:01:38 2025 Received: (at 78640) by debbugs.gnu.org; 9 Jun 2025 10:01:38 +0000 Received: from localhost ([127.0.0.1]:53967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uOZJy-0007H4-0o for submit@debbugs.gnu.org; Mon, 09 Jun 2025 06:01:38 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:33844) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uOZJv-0007Gt-A9 for 78640@debbugs.gnu.org; Mon, 09 Jun 2025 06:01:36 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4bG6rs2JTkz1r5T3; Mon, 9 Jun 2025 12:01:33 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4bG6rs0JWpz1qqlS; Mon, 9 Jun 2025 12:01:33 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id nt5Y7Px8kg67; Mon, 9 Jun 2025 12:01:23 +0200 (CEST) X-Auth-Info: aoJMkmbI8CkDUFQE7tog+10CXO14f2q63Ujqnz18p5bofIFT/OiIwlHPet3nM1AE Received: from tiger (aftr-82-135-83-195.dynamic.mnet-online.de [82.135.83.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 9 Jun 2025 12:01:23 +0200 (CEST) From: Andreas Schwab To: Robert Pluim Subject: Re: bug#78640: elisp url.el cannot handle some valid URLs In-Reply-To: <87jz5l8eyz.fsf@gmail.com> (Robert Pluim's message of "Mon, 09 Jun 2025 11:02:44 +0200") References: <86ldq4hr0i.fsf@gnu.org> <87jz5l8eyz.fsf@gmail.com> Date: Mon, 09 Jun 2025 12:01:23 +0200 Message-ID: <87sek95j4c.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 78640 Cc: Eli Zaretskii , 78640@debbugs.gnu.org, =?utf-8?B?5p6X?= =?utf-8?B?5769?= <0713ws@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) On Jun 09 2025, Robert Pluim wrote: > diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el > index 4258da33a33..5a8279a4122 100644 > --- a/lisp/url/url-http.el > +++ b/lisp/url/url-http.el > @@ -325,8 +325,12 @@ url-http-create-request > url-http-target-url) > nil 'any nil))) > (ref-url (url-http--encode-string url-http-referer))) > - (if (equal "" real-fname) > - (setq real-fname "/")) > + (cond ((equal "" real-fname) > + (setq real-fname "/")) > + ;; RFC 3986 section 6.2.3 says an empty path should be > + ;; normalized to "/". (Bug#78640) > + ((not (eq (aref real-fname 0) ?/)) > + (setq real-fname (concat "/" real-fname)))) The two conditions could be combined since (concat "/" real-fname) also works if real-fname is "". (if (not (string-match-p "\\`/" real-fname)) (setq real-fname (concat "/" real-fname))) -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 09 08:48:06 2025 Received: (at 78640) by debbugs.gnu.org; 9 Jun 2025 12:48:07 +0000 Received: from localhost ([127.0.0.1]:54210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uObv4-0003nl-KY for submit@debbugs.gnu.org; Mon, 09 Jun 2025 08:48:06 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:57701) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uObv2-0003n9-HM for 78640@debbugs.gnu.org; Mon, 09 Jun 2025 08:48:05 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-3a54690d369so986957f8f.3 for <78640@debbugs.gnu.org>; Mon, 09 Jun 2025 05:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749473278; x=1750078078; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=p3xaGTu8Uv+AsmDvlkXR10WcP5ltjspadbbhkPNI+B0=; b=k5jwwL6Q2gL5JtT1Xns+bc1HT6O8u4FW77pBIhvf8XMqCWunwBzqe7VQ+CaifIp8O3 a0wFGJ7paXZfI+Ud3uOjigLl1JPWbKm6mIWEBOmLlklsG/UYi9nskw53KNOGLDAzPRGZ c1GWf21/+Ky2gUHNWG+PyR4xmQC2qCaD4DYV58rkp53bo1hwDt3W8ETliFEfgtQzU79i hf2r4EWH1bRx3RVctMMHyiu8Ux4dImki6hgvFUIla0HkCWIEluuHQuyj4OG7GSj4jMU0 rwaq59sL13/ZMmbqphlnlvdaWsvK9ALpVOxSXXDNxLD+UhzqaD/IvaBK1fj/8bJArMCr qrlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749473278; x=1750078078; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p3xaGTu8Uv+AsmDvlkXR10WcP5ltjspadbbhkPNI+B0=; b=iL7G9KhHbJuJDDaMSmQJyVui8fgWRD1yCveDS5dbLKks80NOIR6RskXom3jaDKpUoc FcAhspn31VY0n+6u32hAmB4SeblP6GKFIBsqjsSfy7joCergfhAWCeJunDtJIlSbak2C gPeO+OL5npT7mrBF9C/fltdBaY25Cn0ZJubI6yaw9CFXVwkTyRlX71Ew7YOWXGaHh7aJ mSoFaqR0JV3sAEJ2XmKQNWMwCB5RXI8iw+vXULUeiR/pHwOA1BgjP0ChPjXIaE9ckf/B 7uyDiKM7g3JQph5AcuX0EoCNjwGraaN4moy0brpFKQmy0OrhK4CHtn7oZslsNDeUGen+ 9Bjg== X-Forwarded-Encrypted: i=1; AJvYcCVFkCpGzcwrkqrAwnnS2MXZzY1cgVBdamxXzyyMBbm2SkxNsEt+Cbo8h9b6ie5PuxjqxJ6PHA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yzh4p7Z78kHidFTUOdMVx4j90Uj3gH3vtGqE78O0phmz58RLMKH S4HNZpywjTe4RzpnaP4puBE6uv96ZentMEajNEShZOWoy5pp9+8nhCgz X-Gm-Gg: ASbGncveNr0mM6KG/SSHEwUDnoef7iGiOyIzJF9scWKpL06hSPQbaHkzVR2kJfX+icr 461Ojtx9bjUTsumbvgyRVOfbO+WR9RO0SqAQcptNU/cdI++Um0z81fBbS6bjmnz6FtIsFDP0H99 NXdiHI4uLrnnT+l6+gE2wJNirHI0bu/mrGIOy1vKJfTCqUdwB+/Ka8fcwo5TZYwchZolRe2F16v zFTmWCjT/ogzXvIwWLriIyxAgAAcVoPQ0be++lF2FONsp9v6aSuQPoaRh1JA2PtFqcT+s0yev4n Q6y7xPxerCOXKjwsb7RraoM/xkIwOvaYkJoONoKaZzZEe0i4 X-Google-Smtp-Source: AGHT+IEv42+YoYFt47e6xi4EVUbNu73cVKOmHXdKjz0sYoFypJew84ZVMUph/f+Hhq/5E7/2VVaRsQ== X-Received: by 2002:a05:6000:220d:b0:3a5:1471:d885 with SMTP id ffacd0b85a97d-3a531cec3e7mr12171706f8f.56.1749473278171; Mon, 09 Jun 2025 05:47:58 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb51:5c8d:25ac:a59:60fb]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a53229d9adsm9350198f8f.9.2025.06.09.05.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jun 2025 05:47:57 -0700 (PDT) From: Robert Pluim To: Andreas Schwab Subject: Re: bug#78640: elisp url.el cannot handle some valid URLs In-Reply-To: <87sek95j4c.fsf@linux-m68k.org> References: <86ldq4hr0i.fsf@gnu.org> <87jz5l8eyz.fsf@gmail.com> <87sek95j4c.fsf@linux-m68k.org> Date: Mon, 09 Jun 2025 14:47:57 +0200 Message-ID: <87bjqx84jm.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78640 Cc: Eli Zaretskii , 78640@debbugs.gnu.org, =?utf-8?B?5p6X?= =?utf-8?B?5769?= <0713ws@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Mon, 09 Jun 2025 12:01:23 +0200, Andreas Schwab said: Andreas> The two conditions could be combined since (concat "/" real-fn= ame) also Andreas> works if real-fname is "". Andreas> (if (not (string-match-p "\\`/" real-fname)) Andreas> (setq real-fname (concat "/" real-fname))) Sure. Although I think I=CA=BCll use `unless' and invert the test. Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 09 10:42:41 2025 Received: (at 78640) by debbugs.gnu.org; 9 Jun 2025 14:42:42 +0000 Received: from localhost ([127.0.0.1]:56282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uOdhv-0007mk-UA for submit@debbugs.gnu.org; Mon, 09 Jun 2025 10:42:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34134) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uOdhr-0007l4-UH for 78640@debbugs.gnu.org; Mon, 09 Jun 2025 10:42:37 -0400 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 1uOdhm-00078G-7h; Mon, 09 Jun 2025 10:42:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=cCUK0SQoyMI8QPl6PJe+dkOjTimsXC0EtLtTyMm4kPI=; b=bjYlcrVVoQ4lmjBa/Bxh abrxyDqrPDpkvWkYJoArL5BxQYvsWAJObfT43GL3bdCqAQTTfTV2BnpLBalSyf+TS3s2LgQTsEg70 HFRfyvMJtg1AQudPQHttQW4HTtgcaqFRNkEOgretF+0beKZ40V3my0fsJ+k1HSE8LRxrr2RqM/67Z NshIY/w4Gtg9wKNBS0GE3LKUn0uysa/soKVNzTk8nKn9VFK6LXRJsk6ZwCAX6343KUxODFJszjVo+ d49aMxwQi7tdNI1oVc3yPHVZRG0BetXv+O+5iVsOTZuk2GS31DefNp1KQOPdy2YHS2aavqizKeRdC 1O7/vyOvGrk3rQ==; Date: Mon, 09 Jun 2025 17:42:27 +0300 Message-Id: <86msahf030.fsf@gnu.org> From: Eli Zaretskii To: Robert Pluim In-Reply-To: <87bjqx84jm.fsf@gmail.com> (message from Robert Pluim on Mon, 09 Jun 2025 14:47:57 +0200) Subject: Re: bug#78640: elisp url.el cannot handle some valid URLs References: <86ldq4hr0i.fsf@gnu.org> <87jz5l8eyz.fsf@gmail.com> <87sek95j4c.fsf@linux-m68k.org> <87bjqx84jm.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78640 Cc: 78640@debbugs.gnu.org, schwab@linux-m68k.org, 0713ws@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Robert Pluim > Cc: Eli Zaretskii , 78640@debbugs.gnu.org, 林羽 > <0713ws@gmail.com> > Date: Mon, 09 Jun 2025 14:47:57 +0200 > > >>>>> On Mon, 09 Jun 2025 12:01:23 +0200, Andreas Schwab said: > > Andreas> The two conditions could be combined since (concat "/" real-fname) also > Andreas> works if real-fname is "". > > Andreas> (if (not (string-match-p "\\`/" real-fname)) > Andreas> (setq real-fname (concat "/" real-fname))) > > Sure. Although I think Iʼll use `unless' and invert the test. Thanks, feel free to install on the master branch. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 11 11:27:26 2025 Received: (at 78640) by debbugs.gnu.org; 11 Jun 2025 15:27:26 +0000 Received: from localhost ([127.0.0.1]:50299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uPNML-00058p-Pq for submit@debbugs.gnu.org; Wed, 11 Jun 2025 11:27:26 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:57481) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uPNMH-00058B-Oh; Wed, 11 Jun 2025 11:27:22 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-3a4ef2c2ef3so7605f8f.2; Wed, 11 Jun 2025 08:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749655635; x=1750260435; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ZB8yFxTVEyVoY801FKO18XXXksa+9Kd2O1NssfjlZIw=; b=WqbDOJWXZIMvIFOGkmLAfugha+DTYsStdxvUQwIvo5qwtJBR+AsQbeSnw5RK5a+lP2 32MdhiEzJh3u4mWSOjSVXAhAED83f9+ulS+67zSqdnzNipbWBj4JR/NDhD0/p83AcbTD VBUzM/9Z6p3mKZEgyPclsDARxIpa1rI7ckf1MhhcWX6A/ComxZrhFAG/IrtshOUabx7g lMa8ZUdnAT/E0cE5r08U3sPGEUqfrIyALPjWewcl4+spzOa4y0w3hQnnsZJCZOVA3OLn hrbqI+e9Mc3e6L5xPoOJLodv7Q0xG4Df9oevnoUFkm5dZSal9DqWHguh8/+U9tYvwXDK 4H2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749655635; x=1750260435; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZB8yFxTVEyVoY801FKO18XXXksa+9Kd2O1NssfjlZIw=; b=JBJVzJz+RYfFWNiZ/K9C5JOrwyR6HxujkQyXO0tKuQJItNl9jjFE+g5MRMNcuEtDfk fk0Rabjum61+EAjoh9Q9CHrOwt0zuQ6Q+fUlLKoh6uZmYy90RzhTmgjG6O6+jdT1VKIB W/e98cB+TvKe59mrt9X9/jDI/DJQ/MdeR54awymMRHkxfoEb4hzFURMOkWnz3ujm7Roy lSM+Vp+PaXytmjxhOq9kHjmeh0EWBfvQkEbrYLKQVtZhaSM7hYfzs85l75CaEkbZjPUv KIEaC62yTRCZQJ4x6PiXHlixPQytaqr7joPbQ5xhl6FNvmj/iaZBbT2y0C4PaWWbdEnm iWEg== X-Forwarded-Encrypted: i=1; AJvYcCUviZyf/5vzPgyDQRW1IhdNa8fLLgfv7YSOhCqmBAmh1wMkdn2svHKZZt0kYPcQkhRznpJAtm41@debbugs.gnu.org X-Gm-Message-State: AOJu0Yw8N1ow87/m+x9GLbuOklpnP5lUNSZPZHD6d97wampcRNJvFgg6 s0cuc00gxWZpkLVR0KxT03I0/I+HqJ20Sx2jAHeEOCpFAlKumx5OBi1OzGRARn+s X-Gm-Gg: ASbGncuf8kB2tdSX87NCmX5ePbnrKwONfTTIZesvsnzTO7o+aAi/1dfdS8McX0H1kwN xVGh4ybn/JdMqGbfGx3KiEHDKwLAncMsaqxi+4dqjv8toihHj50+aDhauyi2Q8598fKCa4bEa7m UB2KNlVxlBaS4xX4w2kiY3eb3QbNiTl54FtbV1ZilYMNS4rC1oFM3G6gtKMJxFkzoa8kyqu0dnW Plp14o+EvFBrF/HmpgWXYiFkY8us4z95/SvjulCsis7mDNF49JNvLUPGZQkebcM6m5dh6JnzJIu 3C1tLSeydaloiVDdSZgJP2U0Vqh89JlWXz5RH7+0y1GEE9TOdRPgLC3yyjLe X-Google-Smtp-Source: AGHT+IF3sHVznTb2iKQbwOs3Prnk7OQX25oo9eUUSG6rkwBcIXlzWbeuEA7SAGbg18CHvprqCjX8FA== X-Received: by 2002:a05:6000:2408:b0:3a4:e706:52f5 with SMTP id ffacd0b85a97d-3a5586efc01mr3241544f8f.13.1749655635172; Wed, 11 Jun 2025 08:27:15 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb51:949a:873a:3ff3:56b6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a5323ae18esm16043390f8f.33.2025.06.11.08.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 08:27:14 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#78640: elisp url.el cannot handle some valid URLs In-Reply-To: <86msahf030.fsf@gnu.org> References: <86ldq4hr0i.fsf@gnu.org> <87jz5l8eyz.fsf@gmail.com> <87sek95j4c.fsf@linux-m68k.org> <87bjqx84jm.fsf@gmail.com> <86msahf030.fsf@gnu.org> Date: Wed, 11 Jun 2025 17:27:14 +0200 Message-ID: <87jz5i9u3x.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78640 Cc: 78640@debbugs.gnu.org, schwab@linux-m68k.org, 0713ws@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 78640 fixed close 78640 31.1 quit >>>>> On Mon, 09 Jun 2025 17:42:27 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Cc: Eli Zaretskii , 78640@debbugs.gnu.org, =E6=9E=97= =E7=BE=BD >> <0713ws@gmail.com> >> Date: Mon, 09 Jun 2025 14:47:57 +0200 >>=20 >> >>>>> On Mon, 09 Jun 2025 12:01:23 +0200, Andreas Schwab said: >>=20 Andreas> The two conditions could be combined since (concat "/" real-fn= ame) also Andreas> works if real-fname is "". >>=20 Andreas> (if (not (string-match-p "\\`/" real-fname)) Andreas> (setq real-fname (concat "/" real-fname))) >>=20 >> Sure. Although I think I=CA=BCll use `unless' and invert the test. Eli> Thanks, feel free to install on the master branch. Done Robert --=20 Pushed to master. 7e62c2cf3aa 2025-06-11T17:10:46+02:00 "Normalize URL path correctly for htt= p" https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D7e62c2cf3aadb52397= bcff8439d00084cd36afa0