GNU bug report logs -
#25445
Bug (Trunk): Redirect fails in Duckduckgo
Previous Next
Reported by: Ian Dunn <dunni <at> gnu.org>
Date: Sat, 14 Jan 2017 05:35:01 UTC
Severity: normal
Tags: fixed, patch
Fixed in version 25.2
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Due I believe to a change in Duckduckgo's API, eww is no longer able to work with Duckduckgo. It appears that they are using a referrer tag with single quotes rather than double quotes. The attached patch fixes this.
[eww.el.diff (text/x-diff, inline)]
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index d42180719d..b051c1ac85 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -501,6 +501,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))
[Message part 3 (text/plain, inline)]
--
Ian Dunn
This bug report was last modified 8 years and 125 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.