[MIRROR] Check for 516 byond:// hrefs (#9624)

Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2024-12-12 16:55:48 -07:00
committed by GitHub
parent 65b20a4d5c
commit a967fb3861
210 changed files with 1230 additions and 1399 deletions

View File

@@ -338,7 +338,7 @@
if(key)
if(include_link && C)
. += "<a href='?priv_msg=\ref[C]'>"
. += "<a href='byond://?priv_msg=\ref[C]'>"
if(C && C.holder && C.holder.fakekey)
. += C.holder.rank // CHOMPEdit: Stealth mode displays staff rank in PM Messages

View File

@@ -1229,7 +1229,7 @@ var/list/WALLITEMS = list(
/proc/topic_link(var/datum/D, var/arglist, var/content)
if(istype(arglist,/list))
arglist = list2params(arglist)
return "<a href='?src=\ref[D];[arglist]'>[content]</a>"
return "<a href='byond://?src=\ref[D];[arglist]'>[content]</a>"
/proc/get_random_colour(var/simple, var/lower=0, var/upper=255)
var/colour
@@ -1564,7 +1564,7 @@ GLOBAL_REAL_VAR(list/stack_trace_storage)
// Note that object refs will be converted to text, as if \ref[thing] was done. To get the ref back on Topic() side, you will need to use locate().
// Third one is the text that will be clickable.
/proc/href(href_src, list/href_params, href_text)
return "<a href='?src=\ref[href_src];[list2params(href_params)]'>[href_text]</a>"
return "<a href='byond://?src=\ref[href_src];[list2params(href_params)]'>[href_text]</a>"
// This is a helper for anything that wants to render the map in TGUI
/proc/get_tgui_plane_masters()