Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug 587608 - Feed reader broken by regexp failure - workaround, revie…

…w pending, a=KaiRo for alpha functionality fix and ignoring CLOSED TREE on relbranch

--HG--
branch : COMM20b4_20100815_RELBRANCH
  • Loading branch information...
commit 78af37ec74f2c3f91aee644dc5f138771ed8e1cc 1 parent 97e25cc
Neil Rashbrook authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 mailnews/extensions/newsblog/content/utils.js
12 mailnews/extensions/newsblog/content/utils.js
View
@@ -449,15 +449,15 @@ function createURN(name)
// escaped.
// NULL characters are removed before encoding.
- name = name.replace("\0", "", "g");
+ name = name.replace(/\0/g, "");
var encoded = encodeURI(name);
- encoded = encoded.replace("#", "%23", "g");
- encoded = encoded.replace("/", "%2f", "g");
- encoded = encoded.replace("?", "%3f", "g");
- encoded = encoded.replace("&", "%26", "g");
- encoded = encoded.replace("~", "%7e", "g");
+ encoded = encoded.replace(/\#/g, "%23");
+ encoded = encoded.replace(/\//g, "%2f");
+ encoded = encoded.replace(/\?/g, "%3f");
+ encoded = encoded.replace(/\&/g, "%26");
+ encoded = encoded.replace(/\~/g, "%7e");
return FZ_ITEM_NS + encoded;
}
Please sign in to comment.
Something went wrong with that request. Please try again.