Fix for bug 17493, We need to cleanup any GCI commands from the URI when generating a file name. R=rhp

This commit is contained in:
ducarroz%netscape.com 1999-10-29 18:50:05 +00:00
parent ae01c120df
commit defcd3c81c

View File

@ -1924,6 +1924,7 @@ GenerateFileNameFromURI(nsIURI *aURL)
if (*cp)
{
if ((cp1 = PL_strchr(cp, '/'))) *cp1 = 0;
if ((cp1 = PL_strchr(cp, '?'))) *cp1 = 0;
if (*cp != '\0')
{
returnString = PL_strdup(cp);