storage/curl: work around different case in hex digits

This commit is contained in:
Max Kellermann 2019-10-15 16:22:02 +02:00
parent 56cc42b752
commit e98d4670b8

View File

@ -492,7 +492,11 @@ private:
if (path == 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)
return nullptr;