fix name matching in products_post

This commit is contained in:
Riley L. 2025-01-28 21:12:32 +01:00
parent 9ed086371e
commit 73347cac74

View file

@ -719,7 +719,7 @@ local function r_products_post()
end end
local name = data.name local name = data.name
if name == nil or name:match("^[%w_-]*$") == nil then if name == nil or name:match("^" .. matchers.name .. "$") == nil then
return error_box("{+error.invalid_name}") return error_box("{+error.invalid_name}")
end end