]> git.proxmox.com Git - pmg-api.git/commit
api/quarantine: add safer endpoint for user white/blacklist address deletion
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 9 Mar 2020 11:18:16 +0000 (12:18 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Mar 2020 17:22:10 +0000 (18:22 +0100)
commite8d909c11faeb5a4f84f39ef50e0eaf8ea65046d
tree35786eeb6560dc49b9c64ba4ad48b21584d0aaf8
parent879d807c55a3a7417b2a828659dd344f9b595caa
api/quarantine: add safer endpoint for user white/blacklist address deletion

having the entry as part of the url causes many problems since it can
contain special characters like '/.,' etc., and that can break API
call path-to-method resolution.

Passing it as parameter makes it easier for callers (frontends) and
safer for backend to use

Note that the new api calls overwrites the parameter pattern with '',
so no formatting limits for the entries

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
[ Thomas: improved commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PMG/API2/Quarantine.pm