From 1af91f4e7ba3d4bbbb9c821090fd160d11e66fae Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 5 Apr 2012 11:49:51 -0400 Subject: 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 --- extensions/BMO/web/js/edituser_menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions') 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(); } -- cgit v1.2.3-24-g4f1b