diff options
| author | João Távora | 2014-08-26 22:04:47 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-08-26 22:04:47 -0700 |
| commit | e7b37ae4df5998bf9658e0fad401b3c5ffbbad29 (patch) | |
| tree | bd38455b6de51b1d6fa92d9a06a092fc071208f3 | |
| parent | 825ca47f5a17cc172b23f8913a33d6721f96f0ed (diff) | |
| download | emacs-e7b37ae4df5998bf9658e0fad401b3c5ffbbad29.tar.gz emacs-e7b37ae4df5998bf9658e0fad401b3c5ffbbad29.zip | |
* net/shr.el (shr-expand-url): Plain expand-file-name is not enough;
use url-expand-file-name.
Fixes: debbugs:18310
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/shr.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3a53d8f9ce5..cdc36d35912 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-08-27 João Távora <joaotavora@gmail.com> | ||
| 2 | |||
| 3 | * net/shr.el (shr-expand-url): Plain expand-file-name is not enough; | ||
| 4 | use url-expand-file-name. (Bug#18310) | ||
| 5 | |||
| 1 | 2014-08-25 Glenn Morris <rgm@gnu.org> | 6 | 2014-08-25 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * emulation/cua-rect.el (cua--highlight-rectangle): | 8 | * emulation/cua-rect.el (cua--highlight-rectangle): |
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 58442575ad2..6d3ebe706a4 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -585,6 +585,8 @@ size, and full-buffer size." | |||
| 585 | (url-type parsed) | 585 | (url-type parsed) |
| 586 | url))) | 586 | url))) |
| 587 | 587 | ||
| 588 | (autoload 'url-expand-file-name "url-expand") | ||
| 589 | |||
| 588 | (defun shr-expand-url (url &optional base) | 590 | (defun shr-expand-url (url &optional base) |
| 589 | (setq base | 591 | (setq base |
| 590 | (if base | 592 | (if base |
| @@ -610,7 +612,7 @@ size, and full-buffer size." | |||
| 610 | (concat (nth 3 base) url)) | 612 | (concat (nth 3 base) url)) |
| 611 | (t | 613 | (t |
| 612 | ;; Totally relative. | 614 | ;; Totally relative. |
| 613 | (concat (car base) (expand-file-name url (cadr base)))))) | 615 | (url-expand-file-name url (concat (car base) (cadr base)))))) |
| 614 | 616 | ||
| 615 | (defun shr-ensure-newline () | 617 | (defun shr-ensure-newline () |
| 616 | (unless (zerop (current-column)) | 618 | (unless (zerop (current-column)) |