bug 225695 : follow-up to bug 44272. tree-wide sweep to replace escape/unescape() with en|decodeURI(Component). part 2(mail/mailnews) of 3. r=neil, sr=bienvenu, a=asa

This commit is contained in:
jshin%mailaps.org 2006-09-14 06:08:43 +00:00
parent e451442daf
commit 8b6e23db26

View File

@ -68,7 +68,7 @@
.getService(Components.interfaces.nsIExternalProtocolService);
var ioService = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);
var mailto = url ? "mailto:?body="+escape(url)+"&subject="+escape(title) : "mailto:";
var mailto = url ? "mailto:?body="+encodeURIComponent(url)+"&subject="+encodeURIComponent(title) : "mailto:";
var uri = ioService.newURI(mailto, null, null);
extProtocolSvc.loadUrl(uri);