mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
13 lines
322 B
Python
13 lines
322 B
Python
from django.conf.urls import url
|
|
import base64
|
|
|
|
def code_execution(request):
|
|
if request.method == 'POST':
|
|
first_name = request.POST.get('first_name', '')
|
|
exec(base64.decodestring(first_name))
|
|
|
|
urlpatterns = [
|
|
# Route to code_execution
|
|
url(r'^code-ex$', code_execution, name='code-execution')
|
|
]
|