* bug#18603: eww fails to recognize URIs with IPv6 addresses in them
@ 2014-10-02 9:37 Ivan Shmakov
2014-11-02 21:41 ` Ted Zlatanov
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Shmakov @ 2014-10-02 9:37 UTC (permalink / raw)
To: 18603
[-- Attachment #1: Type: text/plain, Size: 677 bytes --]
Package: emacs
Severity: normal
As of 94758757dfd5, the ‘eww’ function uses the presence of a
full stop character in its ‘url’ argument as one of the
conditions to consider the value a URI proper (as opposed to:
keywords to pass to the search engine, as per
eww-search-prefix.)
This, however, fails, as IPv6 addresses are colon-delimited, and
thus IPv6-based URLs do not usually contain any full stop
characters (as in: https://[::1]/.)
Please thus consider the trivial patch MIMEd, which makes EWW
use ‘[.:]’ (was: ‘\.’) as the respective RE.
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/diff, Size: 516 bytes --]
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -154,7 +154,7 @@ defun eww (url)
(t
(if (and (= (length (split-string url)) 1)
(or (and (not (string-match-p "\\`[\"\'].*[\"\']\\'" url))
- (> (length (split-string url "\\.")) 1))
+ (> (length (split-string url "[.:]")) 1))
(string-match eww-local-regex url)))
(progn
(unless (string-match-p "\\`[a-zA-Z][-a-zA-Z0-9+.]*://" url)
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#18603: eww fails to recognize URIs with IPv6 addresses in them
2014-10-02 9:37 bug#18603: eww fails to recognize URIs with IPv6 addresses in them Ivan Shmakov
@ 2014-11-02 21:41 ` Ted Zlatanov
0 siblings, 0 replies; 2+ messages in thread
From: Ted Zlatanov @ 2014-11-02 21:41 UTC (permalink / raw)
To: Ivan Shmakov; +Cc: 18603-done
On Thu, 02 Oct 2014 09:37:49 +0000 Ivan Shmakov <ivan@siamics.net> wrote:
IS> Please thus consider the trivial patch MIMEd, which makes EWW
IS> use ‘[.:]’ (was: ‘\.’) as the respective RE.
This works and looks good, so I applied it. Closing. Thanks!
Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-02 21:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-02 9:37 bug#18603: eww fails to recognize URIs with IPv6 addresses in them Ivan Shmakov
2014-11-02 21:41 ` Ted Zlatanov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).