uce/site/doc/pages/shell_escape.txt
2026-06-16 23:02:45 +00:00

18 lines
362 B
Plaintext

:sig
String shell_escape(String raw)
:params
raw : string that should be escaped
return value : escaped version of 'raw'
:see
>sys
:content
Escapes a parameter so it can be used more safely with `shell_exec()`.
This is the helper to reach for when building shell command lines from dynamic input.
:example
print(shell_escape("rm -rf /; echo pwned"), "\n");