Fix edge case in kwarg parsing for template

This commit is contained in:
Griatch 2020-10-04 21:27:42 +00:00
parent 1746aaf06b
commit ef13565b76

View file

@ -1664,6 +1664,7 @@ def _process_callable(caller, goto, goto_callables, raw_string,
gotokwargs = match.group("kwargs") or ""
if gotofunc in goto_callables:
for kwarg in gotokwargs.split(","):
if kwarg and "=" in kwarg:
key, value = [part.strip() for part in kwarg.split("=", 1)]
if key in ("evmenu_goto", "evmenu_gotomap", "_current_nodename",
"evmenu_current_nodename", "evmenu_goto_callables"):