зеркало из https://github.com/mozilla/pjs.git
wtf. this is the wrong code. part of the nsIFile landing.
This commit is contained in:
Родитель
5eb590449c
Коммит
7450f891cf
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче