more utf-8 err checking prevents bogus terms in index

This commit is contained in:
Jean-Francois Dockes
2013-03-30 10:24:10 +01:00
parent 2018ef76b8
commit 0ae8ec99f6
6 changed files with 54 additions and 23 deletions
+1 -1
View File
@@ -462,7 +462,7 @@ string url_encode(const string& url, string::size_type offs)
string out = url.substr(0, offs);
const char *cp = url.c_str();
for (string::size_type i = offs; i < url.size(); i++) {
int c;
unsigned int c;
const char *h = "0123456789ABCDEF";
c = cp[i];
if (c <= 0x20 ||