Sfoglia il codice sorgente

Add soundcloud and bandcamp iframe sources

aniran 8 anni fa
parent
commit
920dda79b7
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      reader/sanitizer/sanitizer.go

+ 6 - 0
reader/sanitizer/sanitizer.go

@@ -280,6 +280,12 @@ func isValidIframeSource(src string) bool {
 		"https://www.dailymotion.com",
 		"https://www.dailymotion.com",
 		"http://vk.com",
 		"http://vk.com",
 		"https://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 {
 	for _, prefix := range whitelist {