wtf. this is the wrong code. part of the nsIFile landing.

git-svn-id: svn://10.0.0.236/trunk@58495 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
2000-01-24 22:41:10 +00:00
parent 462ce90367
commit f24e575c99

View File

@@ -1323,8 +1323,10 @@ nsStdURL::GetFile(nsIFile * *aFile)
#endif
// we need to make sure that the filepath is unescaped!
char* escapedPath = (char*) nsAllocator::Clone((void*)(const char*)path,strlen(path));
PRUint32 size;
path.SizeOf(nsnull, &size);
char* escapedPath = (char*) nsAllocator::Clone((void*)(const char*)path,size);
nsUnescape(escapedPath);
nsCOMPtr<nsILocalFile> localFile;