Add $random default inlinefunc because I expected it to be there

This commit is contained in:
Griatch 2020-07-17 14:25:24 +02:00
parent 98b040634b
commit f7b4193c84
5 changed files with 79 additions and 21 deletions

View file

@ -221,7 +221,9 @@ class SessionHandler(dict):
elif isinstance(data, (str, bytes)):
data = _utf8(data)
if _INLINEFUNC_ENABLED and not raw and isinstance(self, ServerSessionHandler):
if (_INLINEFUNC_ENABLED
and not raw
and isinstance(self, ServerSessionHandler)):
# only parse inlinefuncs on the outgoing path (sessionhandler->)
data = parse_inlinefunc(data, strip=strip_inlinefunc, session=session)