]> git.proxmox.com Git - pmg-gui.git/commit
fix #2632: use alternative api call for user black/whitelist
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 11 Mar 2020 11:03:34 +0000 (12:03 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 11 Mar 2020 11:07:29 +0000 (12:07 +0100)
commita144e5343db310e9df6bb5033c39a75ad28b043f
treef34700c28c3967f6783ec4ef83675550421d9455
parent4460d9531deb72b7f11971d724c7860aa4fd076e
fix #2632: use alternative api call for user black/whitelist

which expects the entry as parameter instead of part of the path
this allows all special characters to be included in the entry

in the url, some characters were problematic (e.g. '/') and not properly
handled by the api in the backend

we use Ext.applyIf (which copies the non-existant entries to params) here
instead of getting the ExtraParams from the proxy and setting '.address'
(that would modify the ExtraParams of the proxy and send unwanted
parameters to subsequent api calls like the list-loading)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
js/UserBlackWhiteList.js