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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user