From a134015070dcdd256b9fabe187daafa37c26bbfb Mon Sep 17 00:00:00 2001 From: Konstantin Isakov Date: Wed, 11 Nov 2009 13:37:23 +0300 Subject: [PATCH] Use gdlookup:// scheme instead of bword:// one for close word suggestions. The latter is prone to problems due to URI conventions and should not be used. --- src/article_maker.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/article_maker.cc b/src/article_maker.cc index 4809a04f..673a6142 100644 --- a/src/article_maker.cc +++ b/src/article_maker.cc @@ -8,6 +8,7 @@ #include "wstring_qt.hh" #include #include +#include using std::vector; using std::string; @@ -490,8 +491,14 @@ void ArticleRequest::stemmedSearchFinished() for( unsigned x = 0; x < sr.size(); ++x ) { + QUrl url; + + url.setScheme( "gdlookup" ); + url.setHost( "localhost" ); + url.setPath( sr[ x ].first ); + string escapedResult = Html::escape( sr[ x ].first.toUtf8().data() ); - footer += "" + escapedResult +""; + footer += string( "" + escapedResult +""; if ( x != sr.size() - 1 ) {