From a16f885fbda803a21cde43630a4a64da31c312d3 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Mon, 28 Sep 2015 17:31:37 -0700 Subject: [PATCH] Fix custom embed invalid tag message --- src/channel/playlist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/channel/playlist.js b/src/channel/playlist.js index 784b9349..24428d00 100644 --- a/src/channel/playlist.js +++ b/src/channel/playlist.js @@ -8,6 +8,7 @@ var Flags = require("../flags"); var db = require("../database"); var Logger = require("../logger"); var CustomEmbedFilter = require("../customembed").filter; +var XSS = require("../xss"); const MAX_ITEMS = Config.get("playlist.max-items"); @@ -467,7 +468,7 @@ PlaylistModule.prototype.queueStandard = function (user, data) { function handleLookup() { InfoGetter.getMedia(data.id, data.type, function (err, media) { if (err) { - error(err+""); + error(XSS.sanitizeText(String(err))); self.channel.activeLock.release(); return lock.release(); }