Make INLINEFUNC_STACK_MAXSIZE default visible in settings_default. Resolves #2173.
This commit is contained in:
parent
f615886d24
commit
fa09aeef50
3 changed files with 9 additions and 8 deletions
|
|
@ -67,6 +67,9 @@ from django.conf import settings
|
|||
|
||||
from evennia.utils import utils, logger
|
||||
|
||||
# The stack size is a security measure. Set to <=0 to disable.
|
||||
_STACK_MAXSIZE = settings.INLINEFUNC_STACK_MAXSIZE
|
||||
|
||||
|
||||
# example/testing inline functions
|
||||
|
||||
|
|
@ -276,12 +279,6 @@ for module in utils.make_iter(settings.INLINEFUNC_MODULES):
|
|||
raise
|
||||
|
||||
|
||||
# The stack size is a security measure. Set to <=0 to disable.
|
||||
try:
|
||||
_STACK_MAXSIZE = settings.INLINEFUNC_STACK_MAXSIZE
|
||||
except AttributeError:
|
||||
_STACK_MAXSIZE = 20
|
||||
|
||||
# regex definitions
|
||||
|
||||
_RE_STARTTOKEN = re.compile(r"(?<!\\)\$(\w+)\(") # unescaped $funcname( (start of function call)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue