Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion gpu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,10 @@ local function runcommand(pos, meta, command)
-- (mod security disallows bytecode)
if command.code:byte(1) == 27 then return false, "No bytecode" end

if command.code:find('"', 1, true) or command.code:find("%[=*%[") then
if command.code:find('"', 1, true) or command.code:find("'", 1, true) or command.code:find("%[=*%[") then
return false, "Cannot create strings in shader code"
elseif command.code:find("..", 1, true) then
return false, "Cannot concatenate strings in shader code"
end

local ok, f, errmsg
Expand Down
Loading