summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/web/js
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-04-05 17:49:51 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-04-05 17:49:51 +0200
commit1af91f4e7ba3d4bbbb9c821090fd160d11e66fae (patch)
treee099d1d6f3b9c2bd74d0c753deeb9a1b6d4afc5b /extensions/BMO/web/js
parent74aa3e30fbb81922c3d566e98fe8d734d93b8259 (diff)
downloadbugzilla-1af91f4e7ba3d4bbbb9c821090fd160d11e66fae.tar.gz
bugzilla-1af91f4e7ba3d4bbbb9c821090fd160d11e66fae.tar.xz
Bug 741171 - When clicking on a user name in show_bug.cgi, user activity doesn't work when email contains plus (+) - email address needs to be encoded
r=glob
Diffstat (limited to 'extensions/BMO/web/js')
-rw-r--r--extensions/BMO/web/js/edituser_menu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/BMO/web/js/edituser_menu.js b/extensions/BMO/web/js/edituser_menu.js
index 392857ab8..0b6fed5f8 100644
--- a/extensions/BMO/web/js/edituser_menu.js
+++ b/extensions/BMO/web/js/edituser_menu.js
@@ -18,8 +18,8 @@ function show_admin_usermenu(event, id, email) {
'page.cgi?id=user_activity.html&action=run' +
'&from=' + YAHOO.util.Date.format(new Date(new Date() - (1000 * 60 * 60 * 24 * 14)), {format: '%Y-%m-%d'}) +
'&to=' + YAHOO.util.Date.format(new Date(), {format: '%Y-%m-%d'}) +
- '&who=' + escape(email));
- admin_usermenu.getItem(2).cfg.setProperty('url', 'mailto:' + escape(email));
+ '&who=' + encodeURIComponent(email));
+ admin_usermenu.getItem(2).cfg.setProperty('url', 'mailto:' + encodeURIComponent(email));
admin_usermenu.cfg.setProperty('xy', YAHOO.util.Event.getXY(event));
admin_usermenu.show();
}