Add urlparse, urllib.request, & urllib.error
This commit is contained in:
@@ -9,6 +9,9 @@ import math
|
|||||||
import random
|
import random
|
||||||
import hashlib
|
import hashlib
|
||||||
from html import escape
|
from html import escape
|
||||||
|
import base64, hmac
|
||||||
|
from urllib.parse import urlparse
|
||||||
|
import urllib.request, urllib.error
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@@ -66,7 +69,10 @@ def execute_code(code, request_obj, environment):
|
|||||||
'escape': escape,
|
'escape': escape,
|
||||||
'math': math,
|
'math': math,
|
||||||
'random': random,
|
'random': random,
|
||||||
'hashlib': hashlib
|
'hashlib': hashlib,
|
||||||
|
'urlparse': urlparse,
|
||||||
|
'urllib.request': urllib.request,
|
||||||
|
'urllib.error': urllib.error
|
||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user