aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader/sanitizer
diff options
context:
space:
mode:
authorGravatar aniran <aniran.chandravongsri@gmail.com>2018-04-26 16:46:40 -0400
committerGravatar Frédéric Guillot <fred@kanboard.net>2018-04-27 17:55:58 -0700
commit920dda79b7d66f30a05aaa03e3fe8dc74aab515b (patch)
treef5654c7434d67fe02fa98580e7a36ac248f43c1a /reader/sanitizer
parent1ce522b98a35688f00e2cbe5bca20cc4a666bb66 (diff)
Add soundcloud and bandcamp iframe sources
Diffstat (limited to 'reader/sanitizer')
-rw-r--r--reader/sanitizer/sanitizer.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/reader/sanitizer/sanitizer.go b/reader/sanitizer/sanitizer.go
index 16f1624..d1ad13e 100644
--- a/reader/sanitizer/sanitizer.go
+++ b/reader/sanitizer/sanitizer.go
@@ -280,6 +280,12 @@ func isValidIframeSource(src string) bool {
"https://www.dailymotion.com",
"http://vk.com",
"https://vk.com",
+ "http://soundcloud.com",
+ "https://soundcloud.com",
+ "http://w.soundcloud.com",
+ "https://w.soundcloud.com",
+ "http://bandcamp.com",
+ "https://bandcamp.com",
}
for _, prefix := range whitelist {