Bug 1518150 - Don't sanitize folder names from ompl import. r=mkmelin
authoralta88 <alta88@gmail.com>
Tue, 22 Jan 2019 18:50:13 -0700
changeset 25680 a65a5f531d4056eb8636579ec8d14937e972ee38
parent 25679 2774b8292eea7452baafc55d0261a718d1acdad2
child 25681 954fd69c1e3c2ccf7b4bdd1f32b53d261b55a9ef
push id15413
push usermozilla@jorgk.com
push dateThu, 24 Jan 2019 22:11:31 +0000
treeherdercomm-central@a65a5f531d40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs1518150
Bug 1518150 - Don't sanitize folder names from ompl import. r=mkmelin
mailnews/extensions/newsblog/content/feed-subscriptions.js
--- a/mailnews/extensions/newsblog/content/feed-subscriptions.js
+++ b/mailnews/extensions/newsblog/content/feed-subscriptions.js
@@ -2663,21 +2663,17 @@ var FeedSubscriptions = {
           FeedUtils.addFeed(feed);
           // Feed correctly added.
           feedsAdded++;
           lastFolder = feed.folder;
         } else {
           // A folder outline. If a folder exists in the account structure at
           // the same level as in the opml structure, feeds are placed into the
           // existing folder.
-          let defaultName = FeedUtils.strings.GetStringFromName("ImportFeedsNew");
-          let folderName = FeedUtils.getSanitizedFolderName(aParentFolder,
-                                                            outlineName,
-                                                            defaultName,
-                                                            false);
+          let folderName = outlineName;
           try {
             feedFolder = aParentFolder.getChildNamed(folderName);
           } catch (ex) {
             // Folder not found, create it.
             FeedUtils.log.info("importOPMLOutlines: creating folder - '" +
                                 folderName + "' from outlineName - '" +
                                 outlineName + "' in parent folder " +
                                 aParentFolder.filePath.path);