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>
(cherry picked from commit
c37fbab8f5e3af0843cf1bef5aa199a0c0db245b)
PKG_IPV4_NAME := $(BIRD1_IPV4_PKG)-openwrt
PKG_IPV6_NAME := $(BIRD1_IPV6_PKG)-openwrt
PKG_VERSION := 0.3
-PKG_RELEASE := 4
+PKG_RELEASE := 5
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
PKG_LICENSE := GPL-3.0-or-later
_("Bird4"), 0)
entry({"admin", "network", "bird4", "status"},
- cbi("bird4/status"),
+ form("bird4/status"),
_("Status"), 0).leaf = true
entry({"admin","network","bird4","log"},
_("BGP Protocol"), 4).leaf = true
entry({"admin","network","bird4","filters"},
- cbi("bird4/filters"),
+ form("bird4/filters"),
_("Filters"), 5).leaf = true
entry({"admin","network","bird4","functions"},
- cbi("bird4/functions"),
+ form("bird4/functions"),
_("Functions"), 6).leaf = true
end
_("Bird6"), 0)
entry({"admin", "network", "bird6", "status"},
- cbi("bird6/status"),
+ form("bird6/status"),
_("Status"), 0).leaf = true
entry({"admin","network","bird6","log"},
_("BGP Protocol"), 4).leaf = true
entry({"admin","network","bird6","filters"},
- cbi("bird6/filters"),
+ form("bird6/filters"),
_("Filters"), 5).leaf = true
entry({"admin","network","bird6","functions"},
- cbi("bird6/functions"),
+ form("bird6/functions"),
_("Functions"), 6).leaf = true
end