]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/window/FirewallLograteEdit.js
ui: FW log ratelimit: avoid access on possible undefined rate
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 16 May 2019 08:31:00 +0000 (10:31 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 16 May 2019 08:31:02 +0000 (10:31 +0200)
commitf6632d26b2d82aadc6c03db376507cc80d435350
tree4049d4d0277208abc405c51bd816bd5c3c2889a0
parent671f470e091f6a11eebae74697c8c251dc2ae722
ui: FW log ratelimit: avoid access on possible undefined rate

This is an optional parameter and needs to be guarded, a simple
"truthy" check is enough, as eithers it's missing or a more complex
string (i.e., it cannot be '0' or the like)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/FirewallLograteEdit.js