forked from Mirrors/privacore-open-source-search-engine
Don't urlencode tab/cr/lf
This commit is contained in:
6
Url.cpp
6
Url.cpp
@ -1162,6 +1162,12 @@ void Url::set( const char *t, int32_t tlen, bool addWWW, bool stripParams, bool
|
||||
break;
|
||||
}
|
||||
|
||||
// skip over tab/cr/lf
|
||||
if (titledbVersion >= 125 && is_wspace_a(*p)) {
|
||||
p += cs;
|
||||
continue;
|
||||
}
|
||||
|
||||
char stored = urlEncode ( &encoded[newUrlLen], 12 , p , cs );
|
||||
p += cs;
|
||||
newUrlLen += stored;
|
||||
|
Reference in New Issue
Block a user