aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-09-21 20:32:15 +0200
committerGravatar Numerlor <[email protected]>2020-09-21 20:32:15 +0200
commit1051877d921eb9542ae845e3463aa2eadb5257a8 (patch)
tree621a0d6375fefcd7cf3879b3ba34949063db828e
parentMerge pull request #1103 from python-discord/feat/backend/160/cog-subdirs (diff)
Upload output with codeblock escapes to pastebin
The output can't be sent to discord, but it won't affect anything in the paste service and can safely be uploaded to it.
-rw-r--r--bot/exts/utils/snekbox.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/utils/snekbox.py b/bot/exts/utils/snekbox.py
index 03bf454ac..b3baffba2 100644
--- a/bot/exts/utils/snekbox.py
+++ b/bot/exts/utils/snekbox.py
@@ -150,6 +150,7 @@ class Snekbox(Cog):
output = output.replace("<!@", "<!@\u200B") # Zero-width space
if ESCAPE_REGEX.findall(output):
+ paste_link = await self.upload_output(original_output)
return "Code block escape attempt detected; will not output result", paste_link
truncated = False