[MIRROR] Play Internet Sound sanity checks (#5918)
* Play Internet Sound sanity checks (#36080) * Play Internet Sound sanity checks Now checks if the content URL uses http(s) before playing * HTML is not HTTP: renames regex * Converted global regexes to procs that return them * Revert "Converted global regexes to procs that return them" This reverts commit 2eedbd6982b0c4de943a72c94f92f9d75001c06e. * Play Internet Sound sanity checks
This commit is contained in:
committed by
Poojawa
parent
5a4f65a288
commit
4f3115cfbe
@@ -125,6 +125,8 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("data/iconCache.sav")) //Cache of ic
|
||||
C << output("[data]", "[window]:ehjaxCallback")
|
||||
|
||||
/datum/chatOutput/proc/sendMusic(music, pitch)
|
||||
if(!findtext(music, GLOB.is_http_protocol))
|
||||
return
|
||||
var/list/music_data = list("adminMusic" = url_encode(url_encode(music)))
|
||||
if(pitch)
|
||||
music_data["musicRate"] = pitch
|
||||
|
||||
Reference in New Issue
Block a user