summaryrefslogtreecommitdiff
path: root/lisp/url
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2018-04-14 00:08:26 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2018-04-14 00:08:26 +0200
commite442879b5a963a6eb37403fe09f476e7ee8e0f55 (patch)
tree437d2e5fa91a7004d999361a9ce5af0f2968de3b /lisp/url
parent4575ae5a9c5589ac903362486951f0d36c8ff8ee (diff)
downloademacs-e442879b5a963a6eb37403fe09f476e7ee8e0f55.tar.gz
Make the url file: handler be less clever
* doc/misc/url.texi (file/ftp): Remove mention of the url-directory-index-file variable, which is no longer consulted. * lisp/url/url-file.el (url-file-build-filename): Remove the DWIM code from the file: handler (bug#30195): It would look for index.html in a directory if we asked it to fetch the directory. Determining what to do in a directory should be left up to the programs that use this low-level library. If the library decides to load a different file than we specified, then things start falling apart, as demonstrated by this bug report.
Diffstat (limited to 'lisp/url')
-rw-r--r--lisp/url/url-file.el11
1 files changed, 0 insertions, 11 deletions
diff --git a/lisp/url/url-file.el b/lisp/url/url-file.el
index 4fac4060237..92edd9901ef 100644
--- a/lisp/url/url-file.el
+++ b/lisp/url/url-file.el
@@ -142,17 +142,6 @@ to them."
(not (string-match "/\\'" filename)))
(setf (url-filename url) (format "%s/" filename)))
-
- ;; If it is a directory, look for an index file first.
- (if (and (file-directory-p filename)
- url-directory-index-file
- (setq pos-index (expand-file-name url-directory-index-file filename))
- (file-exists-p pos-index)
- (file-readable-p pos-index))
- (setq filename pos-index))
-
- ;; Find the (possibly compressed) file
- (setq filename (url-file-find-possibly-compressed-file filename))
filename))
;;;###autoload