Assorted Nanopaint-related Fixes (#96293)

This commit is contained in:
Y0SH1M4S73R
2026-06-01 22:17:58 -04:00
committed by GitHub
parent 65dbc1accf
commit 33785492f6
5 changed files with 29 additions and 10 deletions
@@ -126,8 +126,8 @@
if("PRG_savelog")
if(!channel)
return
var/logname = stripped_input(params["log_name"])
if(!logname)
var/logname = trim(params["log_name"], MAX_MESSAGE_LEN)
if(!length(logname) || !filter_filename_pda(logname))
return
var/datum/computer_file/data/text/logfile = new()
// Now we will generate HTML-compliant file that can actually be viewed/printed.