aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bzpage.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r--lib/bzpage.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index 07e7ea9..1731b64 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -499,9 +499,15 @@ BZPage.prototype.setConfigurationButton = function setConfigurationButton () {
*
*/
BZPage.prototype.parseMailto = function parseMailto(aElement) {
+ var emailStr = "", hrefStr = "";
if (aElement) {
- return decodeURI(aElement.getAttribute("href")).
- split(":")[1];
+ hrefStr = decodeURIComponent(aElement.getAttribute("href"));
+ emailStr = hrefStr.split(":")[1];
+ if (emailStr === undefined) {
+ var params = util.getParamsFromURL("https://" + this.hostname + "/" + hrefStr);
+ emailStr = decodeURI(params['login']);
+ }
+ return emailStr;
}
return null;
};