зеркало из https://github.com/mozilla/gecko-dev.git
Fixed the spaces problem. File path is now unescaped before being handed over to file spec.
This commit is contained in:
Родитель
8b2b5557d3
Коммит
c6472453b8
|
@ -37,7 +37,7 @@
|
|||
#include "nsCOMPtr.h"
|
||||
#include "nsXPIDLString.h"
|
||||
#include "nsSpecialSystemDirectory.h"
|
||||
|
||||
#include "nsEscape.h"
|
||||
#include "nsIMIMEService.h"
|
||||
|
||||
static NS_DEFINE_CID(kMIMEServiceCID, NS_MIMESERVICE_CID);
|
||||
|
@ -126,7 +126,7 @@ nsFileChannel::Init(nsFileProtocolHandler* handler,
|
|||
}
|
||||
}
|
||||
#else
|
||||
nsFilePath filePath(fileString);
|
||||
nsFilePath filePath(nsUnescape((char*)(const char*)fileString));
|
||||
mSpec = filePath;
|
||||
#endif
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче