mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-24 05:38:15 +01:00
removes all var/ in procs (#12738)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/proc/send2irc(var/channel, var/msg)
|
||||
/proc/send2irc(channel, msg)
|
||||
return // VOREStation Edit - Can't exploit shell if we never call shell!
|
||||
/* Unreachable with above VOREStation Edit
|
||||
if (CONFIG_GET(flag/use_irc_bot)) // CHOMPEdit
|
||||
@@ -25,12 +25,12 @@
|
||||
return
|
||||
*/
|
||||
|
||||
/proc/send2mainirc(var/msg)
|
||||
/proc/send2mainirc(msg)
|
||||
if(CONFIG_GET(string/main_irc))
|
||||
send2irc(CONFIG_GET(string/main_irc), msg)
|
||||
return
|
||||
|
||||
/proc/send2adminirc(var/msg)
|
||||
/proc/send2adminirc(msg)
|
||||
if(CONFIG_GET(string/admin_irc))
|
||||
send2irc(CONFIG_GET(string/admin_irc), msg)
|
||||
return
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Ported from /vg/.
|
||||
/proc/escape_shell_arg(var/arg)
|
||||
/proc/escape_shell_arg(arg)
|
||||
// RCE prevention
|
||||
// - Encloses arg in single quotes
|
||||
// - Escapes single quotes
|
||||
@@ -16,7 +16,7 @@
|
||||
arg = "'[arg]'"
|
||||
return arg
|
||||
|
||||
/proc/ext_python(var/script, var/arguments, var/scriptsprefix = 1)
|
||||
/proc/ext_python(script, arguments, scriptsprefix = 1)
|
||||
return // VOREStation Edit - Can't exploit shell if we never call shell!
|
||||
/* Unreachable with above vorestation edit
|
||||
if(scriptsprefix)
|
||||
|
||||
Reference in New Issue
Block a user