From: Michael M Slusarz Date: Wed, 7 Apr 2010 22:30:11 +0000 (-0600) Subject: Bug #8952: Fix casting spam parameter to number X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=94b41e1d9de573dade424bab53644eec0c72cae2;p=horde.git Bug #8952: Fix casting spam parameter to number --- diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 233474719..ff9cd9757 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -2713,7 +2713,7 @@ var DimpBase = { reportSpam: function(spam, opts) { opts = opts || {}; - if (this._doMsgAction('reportSpam', opts, { spam: spam })) { + if (this._doMsgAction('reportSpam', opts, { spam: Number(spam) })) { // Indicate to the user that something is happening (since spam // reporting may not be instantaneous). this.loadingImg('viewport', true);