projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
09d5de6
)
luci-base: dispatcher.uc: satisfy auto-created intermediate nodes
author
Jo-Philipp Wich
<jo@mein.io>
Mon, 21 Aug 2023 07:24:32 +0000
(09:24 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Mon, 21 Aug 2023 07:48:29 +0000
(09:48 +0200)
When we auto-create intermediate parent nodes, make sure that those nodes
are marked as satisfied, so that it is possible to dispatch their actual
child nodes.
This aligns the behavior with the old Lua based dispatcher implementation.
Fixes: #6529
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/ucode/dispatcher.uc
patch
|
blob
|
history
diff --git
a/modules/luci-base/ucode/dispatcher.uc
b/modules/luci-base/ucode/dispatcher.uc
index 7ff34afba9632bb3d74339a8c0d81bb1008f5d73..f42155d5396d2fc936ae5d3e05490e18bbfa8336 100644
(file)
--- a/
modules/luci-base/ucode/dispatcher.uc
+++ b/
modules/luci-base/ucode/dispatcher.uc
@@
-395,7
+395,7
@@
function build_pagetree() {
}
node.children ??= {};
- node.children[s[0]] ??= {};
+ node.children[s[0]] ??= {
satisfied: true
};
node = node.children[s[0]];
}