Bug #8952: Fix casting spam parameter to number
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 7 Apr 2010 22:30:11 +0000 (16:30 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 8 Apr 2010 19:27:12 +0000 (13:27 -0600)
imp/js/DimpBase.js

index 2334747..ff9cd97 100644 (file)
@@ -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);