From 596d45df8865163a1d050259be298c58046039f3 Mon Sep 17 00:00:00 2001 From: "jruderman%hmc.edu" Date: Mon, 21 Jun 2004 22:02:35 +0000 Subject: [PATCH] Bug 246419 - Bookmarks file converts ' to ' in bookmark title. Patch by BenB and Bill Mason. r=mconnor. --- browser/components/bookmarks/src/nsBookmarksService.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/browser/components/bookmarks/src/nsBookmarksService.cpp b/browser/components/bookmarks/src/nsBookmarksService.cpp index 3a4063fe4fc..493ae6c644c 100644 --- a/browser/components/bookmarks/src/nsBookmarksService.cpp +++ b/browser/components/bookmarks/src/nsBookmarksService.cpp @@ -970,6 +970,11 @@ BookmarkParser::Unescape(nsString &text) text.Cut(offset, 6); text.Insert(PRUnichar('\"'), offset); } + else if (Substring(text, offset, 5).Equals(NS_LITERAL_STRING("'"))) + { + text.Cut(offset, 5); + text.Insert(PRUnichar('\''), offset); + } ++offset; }