]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/eww.el (eww-tag-meta): Handle single quoted URLs (Bug#25445).
authorIan Dunn <dunni@gnu.org>
Mon, 16 Jan 2017 00:02:47 +0000 (19:02 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 16 Jan 2017 04:24:38 +0000 (23:24 -0500)
Copyright-paperwork-exempt: yes

lisp/net/eww.el

index fe9f40a58ab44a14759081f3a6b197184b13f511..29390eeebb318bc94a9e942027bcac1f8fea914e 100644 (file)
@@ -477,6 +477,7 @@ Currently this means either text/html or application/xhtml+xml."
              (< eww-redirect-level 5))
     (when-let (refresh (dom-attr dom 'content))
       (when (or (string-match "^\\([0-9]+\\) *;.*url=\"\\([^\"]+\\)\"" refresh)
+                (string-match "^\\([0-9]+\\) *;.*url='\\([^']+\\)'" refresh)
                 (string-match "^\\([0-9]+\\) *;.*url=\\([^ ]+\\)" refresh))
         (let ((timeout (match-string 1 refresh))
               (url (match-string 2 refresh))