Skip to content

Commit

Permalink
bird1: fix "Form token mismatch" errors in luci-app-bird1-ipv{4,6}
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rogerpueyo authored and BKPepe committed Mar 6, 2023
1 parent d32f93e commit c37fbab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bird1-openwrt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PKG_NAME := $(BIRD1_PKG)-openwrt
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

Expand Down
6 changes: 3 additions & 3 deletions bird1-openwrt/bird1-ipv4-openwrt/src/controller/bird4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function index()
_("Bird4"), 0)

entry({"admin", "network", "bird4", "status"},
cbi("bird4/status"),
form("bird4/status"),
_("Status"), 0).leaf = true

entry({"admin","network","bird4","log"},
Expand All @@ -43,10 +43,10 @@ function index()
_("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
6 changes: 3 additions & 3 deletions bird1-openwrt/bird1-ipv6-openwrt/src/controller/bird6.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function index()
_("Bird6"), 0)

entry({"admin", "network", "bird6", "status"},
cbi("bird6/status"),
form("bird6/status"),
_("Status"), 0).leaf = true

entry({"admin","network","bird6","log"},
Expand All @@ -43,10 +43,10 @@ function index()
_("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

0 comments on commit c37fbab

Please sign in to comment.