diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-02-01 21:20:27 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-02-01 21:20:27 (GMT) |
| commit | f86091d421989ead46940cc12b77e48cfb127608 (patch) | |
| tree | 978f64c6ab2e90789e73ab3af52f9528429fe8a0 /src/client/Client.cpp | |
| parent | 038da72c61ea6a251d805e2de3662f240da52b02 (diff) | |
| download | powder-f86091d421989ead46940cc12b77e48cfb127608.zip powder-f86091d421989ead46940cc12b77e48cfb127608.tar.gz | |
Use useragent for version, fix URl encoding
Diffstat (limited to 'src/client/Client.cpp')
| -rw-r--r-- | src/client/Client.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 3706cf9..ce7c9e6 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -9,6 +9,7 @@ #include "Client.h" #include "MD5.h" #include "Graphics.h" +#include "Misc.h" #include "interface/Point.h" @@ -434,12 +435,12 @@ std::vector<Save*> * Client::SearchSaves(int start, int count, string query, str { urlStream << "&Search_Query="; if(query.length()) - urlStream << query; + urlStream << URLEscape(query); if(sort == "date") { if(query.length()) - urlStream << " "; - urlStream << "sort:" << sort; + urlStream << URLEscape(" "); + urlStream << URLEscape("sort:") << URLEscape(sort); } } |
