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