mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Math: Add comment about security.
This commit is contained in:
parent
0371480bd6
commit
27b878ff7c
@ -189,6 +189,8 @@ class Math(callbacks.Plugin):
|
|||||||
"Please remove them."))
|
"Please remove them."))
|
||||||
return
|
return
|
||||||
if self._calc_match_forbidden_chars.match(text):
|
if self._calc_match_forbidden_chars.match(text):
|
||||||
|
# Note: this is important to keep this to forbid usage of
|
||||||
|
# __builtins__
|
||||||
irc.error(_('There\'s really no reason why you should have '
|
irc.error(_('There\'s really no reason why you should have '
|
||||||
'underscores or brackets in your mathematical '
|
'underscores or brackets in your mathematical '
|
||||||
'expression. Please remove them.'))
|
'expression. Please remove them.'))
|
||||||
@ -243,6 +245,8 @@ class Math(callbacks.Plugin):
|
|||||||
the 'trusted' capability to use.
|
the 'trusted' capability to use.
|
||||||
"""
|
"""
|
||||||
if self._calc_match_forbidden_chars.match(text):
|
if self._calc_match_forbidden_chars.match(text):
|
||||||
|
# Note: this is important to keep this to forbid usage of
|
||||||
|
# __builtins__
|
||||||
irc.error(_('There\'s really no reason why you should have '
|
irc.error(_('There\'s really no reason why you should have '
|
||||||
'underscores or brackets in your mathematical '
|
'underscores or brackets in your mathematical '
|
||||||
'expression. Please remove them.'))
|
'expression. Please remove them.'))
|
||||||
|
Loading…
Reference in New Issue
Block a user