From 3d8700a6d29f8f9a3a84b3e993e2992ce176006d Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 27 Feb 2015 09:48:21 +0000 Subject: [PATCH] fix security bug in imgur module --- modules/imgur/imgur.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/imgur/imgur.js b/modules/imgur/imgur.js index 1497e45..522808a 100644 --- a/modules/imgur/imgur.js +++ b/modules/imgur/imgur.js @@ -197,7 +197,7 @@ var imgur = function(dbot) { var postImage = function(link, imgData) { var info = this.internalAPI.infoString(imgData); - event.reply(local + ': ' + link + ' [' + info + ']'); + event.reply(this.config.outputPrefix + ' ' + local + ': ' + link + ' [' + info + ']'); }.bind(this); var newCacheImage = function(link, imgData) { this.riCache.push([link, imgData]); @@ -222,7 +222,7 @@ var imgur = function(dbot) { this.api.getRandomImage(function(link, slug) { this.api.getImageInfo(slug, function(imgData) { var info = this.internalAPI.infoString(imgData); - event.reply(local + ': ' + link + ' [' + info + ']'); + event.reply(this.config.outputPrefix + ' ' + local + ': ' + link + ' [' + info + ']'); }.bind(this)); }.bind(this)); }, @@ -243,7 +243,7 @@ var imgur = function(dbot) { if(!_.isUndefined(body) && body.data && body.data[0] != undefined) { var num = _.random(0, body.data.length - 1); this.api.getGalleryInfo(body.data[num].id, function(gal) { - event.reply(local + ': ' + gal.data.link + ' [' + + event.reply(this.config.outputPrefix + ' ' + local + ': ' + gal.data.link + ' [' + this.internalAPI.galleryInfoString(gal) + ']'); }.bind(this)); }