Disallow bad Soundcloud directory names
This commit is contained in:
parent
0b79453405
commit
30a8eddba3
@ -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]];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user