]> git.eshelyaron.com Git - emacs.git/commitdiff
(url-default-expander): Use concat to combine parts. (Bug #1020)
authorJason Rumney <jasonr@gnu.org>
Sat, 21 Feb 2009 07:53:54 +0000 (07:53 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 21 Feb 2009 07:53:54 +0000 (07:53 +0000)
lisp/url/url-expand.el

index 14dafbdc2da8e1ca9e5f065a03e7a22073257d88..d37b0b2223a34fe9b71a8ef6de6b0962a15a99c7 100644 (file)
@@ -134,9 +134,11 @@ path components followed by `..' are removed, along with the `..' itself."
                  file (substring (url-filename urlobj) 0 (match-beginning 0))
                  sepchar (substring (url-filename urlobj) (match-beginning 0) (match-end 0)))
          (setq file (url-filename urlobj)))
+       ;; We use concat rather than expand-file-name to combine
+       ;; directory and file name, since urls do not follow the same
+       ;; rules as local files on all platforms.
        (setq file (url-expander-remove-relative-links
-                   (expand-file-name file
-                                     (url-file-directory (url-filename defobj)))))
+                   (concat (url-file-directory (url-filename defobj)) file)))
        (setf (url-filename urlobj)
               (if query (concat file sepchar query) file))))))