diff options
| author | Lars Magne Ingebrigtsen | 2011-04-21 02:22:56 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-04-21 02:22:56 +0000 |
| commit | 2b45516032f09132ef5a6da32c4482bbe689815f (patch) | |
| tree | 85177238805829ebb74142181362900514dab472 | |
| parent | dbd5ffad4d537506245e92d56c7b833ad5af821b (diff) | |
| download | emacs-2b45516032f09132ef5a6da32c4482bbe689815f.tar.gz emacs-2b45516032f09132ef5a6da32c4482bbe689815f.zip | |
shr.el (shr-expand-url): Protect against null urls.
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/shr.el | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9c37b9bf576..5803fe7d0fd 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-04-21 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * shr.el (shr-expand-url): Protect against null urls. | ||
| 4 | |||
| 1 | 2011-04-20 Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | 2011-04-20 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 6 | ||
| 3 | * shr.el (shr-base): New binding. | 7 | * shr.el (shr-base): New binding. |
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index f27705e0bf5..ee231e6a82f 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el | |||
| @@ -397,7 +397,8 @@ redirects somewhere else." | |||
| 397 | (defun shr-expand-url (url) | 397 | (defun shr-expand-url (url) |
| 398 | (cond | 398 | (cond |
| 399 | ;; Absolute URL. | 399 | ;; Absolute URL. |
| 400 | ((or (string-match "\\`[a-z]*:" url) | 400 | ((or (not url) |
| 401 | (string-match "\\`[a-z]*:" url) | ||
| 401 | (not shr-base)) | 402 | (not shr-base)) |
| 402 | url) | 403 | url) |
| 403 | ((and (not (string-match "/\\'" shr-base)) | 404 | ((and (not (string-match "/\\'" shr-base)) |