Disallow bad Soundcloud directory names

This commit is contained in:
Mowsh (Joseph Stevens) 2014-12-01 18:35:47 +00:00
parent 0b79453405
commit 30a8eddba3

View File

@ -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]];
}
}