emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 46095a7: Fix downloading of URLs that end in a sl


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 46095a7: Fix downloading of URLs that end in a slash
Date: Fri, 8 Feb 2019 02:42:20 -0500 (EST)

branch: emacs-26
commit 46095a7dcb5fd6e0b79582bd14aa87f2d04f4a65
Author: Nick Drozd <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix downloading of URLs that end in a slash
    
    * lisp/net/eww.el (eww-download-callback): Fix download URL
    file name.  Previously this wasn't handling download URLs
    correctly, resulting in all downloaded pages being named
    "!", "!(1)", etc.  (Bug#34291)
---
 lisp/net/eww.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index cf586e2..1cc4557 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1526,7 +1526,7 @@ Differences in #targets are ignored."
 (defun eww-download-callback (status url)
   (unless (plist-get status :error)
     (let* ((obj (url-generic-parse-url url))
-           (path (car (url-path-and-query obj)))
+           (path (directory-file-name (car (url-path-and-query obj))))
            (file (eww-make-unique-file-name
                   (eww-decode-url-file-name (file-name-nondirectory path))
                   eww-download-directory)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]