From fd902e81dadc2f8bed76445acdd27e7eca5548d9 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Mon, 30 Jul 2007 15:07:20 +0300 Subject: [PATCH] Rewrite wiki to en.wikipedia.org, avoid server bug. incorrectly redirects to which searches for "sue%20lawley" rather than "sue lawley". By using en.wikipedia.org directly, we avoid the server bug. Prompted by an elinks-users post on 2007-07-27. I asked on #wikimedia-tech, and www.wikipedia.org does always redirect to en.wikipedia.org; it does not guess any other language based on headers or IP addresses or such. Also, the redirection exists only for compatibility, and skipping it avoids a few roundtrips to the server. So this change is good even if the server is eventually fixed. --- src/protocol/rewrite/rewrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/rewrite/rewrite.c b/src/protocol/rewrite/rewrite.c index f66d4e54d..068e05bc6 100644 --- a/src/protocol/rewrite/rewrite.c +++ b/src/protocol/rewrite/rewrite.c @@ -196,7 +196,7 @@ static struct option_info uri_rewrite_options[] = { INIT_OPT_SMART_PREFIX("mw", "http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=%s"), INIT_OPT_SMART_PREFIX("mwt", "http://www.m-w.com/cgi-bin/thesaurus?book=Thesaurus&va=%s"), INIT_OPT_SMART_PREFIX("whatis", "http://uptime.netcraft.com/up/graph/?host=%s"), - INIT_OPT_SMART_PREFIX("wiki", "http://www.wikipedia.org/w/wiki.phtml?search=%s"), + INIT_OPT_SMART_PREFIX("wiki", "http://en.wikipedia.org/w/wiki.phtml?search=%s"), INIT_OPT_SMART_PREFIX("wn", "http://www.cogsci.princeton.edu/cgi-bin/webwn1.7.1?stage=1&word=%s"), /* Search the Free Software Directory */ INIT_OPT_SMART_PREFIX("fsd", "http://directory.fsf.org/search/fsd-search.py?q=%s"),