Add urlparse, urllib.request, & urllib.error

This commit is contained in:
Peter Stockings
2025-10-29 20:32:21 +11:00
parent 57dd830019
commit f966bb32d6

View File

@@ -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: