From 30a8eddba3b0c52e75258f74144dc3af4e54438b Mon Sep 17 00:00:00 2001 From: "Mowsh (Joseph Stevens)" Date: Mon, 1 Dec 2014 18:35:47 +0000 Subject: [PATCH] Disallow bad Soundcloud directory names --- app/js/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index ab350a97..ca6dd336 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -3317,7 +3317,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) } else if (embedUrlMatches = text.match(soundcloudRegex)) { var badFolders = 'explore,upload,pages,terms-of-use,mobile,jobs,imprint'.split(','); - if (badFolders.indexOf(embedUrlMatches[1]) != -1) { + if (badFolders.indexOf(embedUrlMatches[1]) == -1) { return ['soundcloud', embedUrlMatches[0]]; } }