bird1: fix "Form token mismatch" errors in luci-app-bird1-ipv{4,6}
The "Filters", "Functions" and "Status" sections of the web interfaces for both Bird4 and Bird6 threw the following error upon performing any action: Form token mismatch The submitted security token is invalid or already expired! Changing their entry types from "cbi" to "form" fixes them. Fixes #922. Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
This commit is contained in:
parent
d32f93e049
commit
c37fbab8f5
3 changed files with 7 additions and 7 deletions
|
@ -16,7 +16,7 @@ PKG_NAME := $(BIRD1_PKG)-openwrt
|
||||||
PKG_IPV4_NAME := $(BIRD1_IPV4_PKG)-openwrt
|
PKG_IPV4_NAME := $(BIRD1_IPV4_PKG)-openwrt
|
||||||
PKG_IPV6_NAME := $(BIRD1_IPV6_PKG)-openwrt
|
PKG_IPV6_NAME := $(BIRD1_IPV6_PKG)-openwrt
|
||||||
PKG_VERSION := 0.3
|
PKG_VERSION := 0.3
|
||||||
PKG_RELEASE := 4
|
PKG_RELEASE := 5
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||||
PKG_LICENSE := GPL-3.0-or-later
|
PKG_LICENSE := GPL-3.0-or-later
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ function index()
|
||||||
_("Bird4"), 0)
|
_("Bird4"), 0)
|
||||||
|
|
||||||
entry({"admin", "network", "bird4", "status"},
|
entry({"admin", "network", "bird4", "status"},
|
||||||
cbi("bird4/status"),
|
form("bird4/status"),
|
||||||
_("Status"), 0).leaf = true
|
_("Status"), 0).leaf = true
|
||||||
|
|
||||||
entry({"admin","network","bird4","log"},
|
entry({"admin","network","bird4","log"},
|
||||||
|
@ -43,10 +43,10 @@ function index()
|
||||||
_("BGP Protocol"), 4).leaf = true
|
_("BGP Protocol"), 4).leaf = true
|
||||||
|
|
||||||
entry({"admin","network","bird4","filters"},
|
entry({"admin","network","bird4","filters"},
|
||||||
cbi("bird4/filters"),
|
form("bird4/filters"),
|
||||||
_("Filters"), 5).leaf = true
|
_("Filters"), 5).leaf = true
|
||||||
|
|
||||||
entry({"admin","network","bird4","functions"},
|
entry({"admin","network","bird4","functions"},
|
||||||
cbi("bird4/functions"),
|
form("bird4/functions"),
|
||||||
_("Functions"), 6).leaf = true
|
_("Functions"), 6).leaf = true
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,7 +23,7 @@ function index()
|
||||||
_("Bird6"), 0)
|
_("Bird6"), 0)
|
||||||
|
|
||||||
entry({"admin", "network", "bird6", "status"},
|
entry({"admin", "network", "bird6", "status"},
|
||||||
cbi("bird6/status"),
|
form("bird6/status"),
|
||||||
_("Status"), 0).leaf = true
|
_("Status"), 0).leaf = true
|
||||||
|
|
||||||
entry({"admin","network","bird6","log"},
|
entry({"admin","network","bird6","log"},
|
||||||
|
@ -43,10 +43,10 @@ function index()
|
||||||
_("BGP Protocol"), 4).leaf = true
|
_("BGP Protocol"), 4).leaf = true
|
||||||
|
|
||||||
entry({"admin","network","bird6","filters"},
|
entry({"admin","network","bird6","filters"},
|
||||||
cbi("bird6/filters"),
|
form("bird6/filters"),
|
||||||
_("Filters"), 5).leaf = true
|
_("Filters"), 5).leaf = true
|
||||||
|
|
||||||
entry({"admin","network","bird6","functions"},
|
entry({"admin","network","bird6","functions"},
|
||||||
cbi("bird6/functions"),
|
form("bird6/functions"),
|
||||||
_("Functions"), 6).leaf = true
|
_("Functions"), 6).leaf = true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue