From fc5b52d4f26f0cb18ddcd04028974e461325570c Mon Sep 17 00:00:00 2001 From: "sdwilsh@shawnwilsher.com" Date: Tue, 26 Jun 2007 17:45:52 -0700 Subject: [PATCH] Bug 314846 - exthandler doesn't remove : colon from mac file names (Random filename after downloading). Patch by Edward Lee . r=benjamin, sr=cbiesinger --- xpcom/ds/nsCRT.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xpcom/ds/nsCRT.h b/xpcom/ds/nsCRT.h index 043f27ccdd1b..8d38525663f8 100644 --- a/xpcom/ds/nsCRT.h +++ b/xpcom/ds/nsCRT.h @@ -268,7 +268,10 @@ public: #define CRLF "\015\012" /* A CR LF equivalent string */ -#if defined(XP_WIN) || defined(XP_OS2) +#if defined(XP_MACOSX) + #define FILE_PATH_SEPARATOR "/" + #define FILE_ILLEGAL_CHARACTERS ":" +#elif defined(XP_WIN) || defined(XP_OS2) #define FILE_PATH_SEPARATOR "\\" #define FILE_ILLEGAL_CHARACTERS "/:*?\"<>|" #elif defined(XP_UNIX) || defined(XP_BEOS)