Commit 34d44663 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wininet: Strip trailing slashes from filename in CreateUrlCacheEntryW.

parent fe3ba129
......@@ -2258,6 +2258,8 @@ BOOL WINAPI CreateUrlCacheEntryW(
if (!len)
return FALSE;
szFile[len] = '\0';
while(len && szFile[--len] == '/') szFile[len] = '\0';
/* FIXME: get rid of illegal characters like \, / and : */
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment