storage/curl: work around different case in hex digits
This commit is contained in:
parent
56cc42b752
commit
e98d4670b8
@ -492,7 +492,11 @@ private:
|
|||||||
if (path == nullptr)
|
if (path == nullptr)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
path = StringAfterPrefix(path, base_path.c_str());
|
/* kludge: ignoring case in this comparison to avoid
|
||||||
|
false negatives if the web server uses a different
|
||||||
|
case in hex digits in escaped characters; TODO:
|
||||||
|
implement properly */
|
||||||
|
path = StringAfterPrefixIgnoreCase(path, base_path.c_str());
|
||||||
if (path == nullptr || *path == 0)
|
if (path == nullptr || *path == 0)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user