mirror of
https://codeberg.org/metamuffin/abrechenbarkeit.git
synced 2025-05-23 06:44:45 +00:00
fix name matching in products_post
This commit is contained in:
parent
9ed086371e
commit
73347cac74
1 changed files with 1 additions and 1 deletions
|
@ -719,7 +719,7 @@ local function r_products_post()
|
|||
end
|
||||
|
||||
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}")
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue