[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdemultimedia/juk
From: Scott Wheeler <wheeler () kde ! org>
Date: 2004-11-11 22:08:20
Message-ID: 20041111220820.5371B16E52 () office ! kde ! org
[Download RAW message or body]
CVS commit by wheeler:
Escape the parts of the query string that are problematic in URLs.
M +3 -2 googlefetcher.cpp 1.10
--- kdemultimedia/juk/googlefetcher.cpp #1.9:1.10
@@ -34,5 +34,5 @@ GoogleImage::GoogleImage(QString thumbUR
m_imageURL = "http://" + thumbURL.remove(QRegExp("^.*q=tbn:[^:]*:"));
- m_size = size.replace("pixels - ","\n(")+")";
+ m_size = size.replace("pixels - ", "\n(")+")";
}
@@ -52,5 +52,6 @@ void GoogleFetcher::loadImageURLs()
m_imageList.clear();
- KURL url = "http://images.google.com/images?q=" + m_searchString;
+ KURL url = "http://images.google.com/images?q=" +
+ KURL::encode_string_no_slash(m_searchString);
m_loadedQuery = m_searchString;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic