Skip to content
Permalink
Browse files Browse the repository at this point in the history
added validation of send attribute in admin
  • Loading branch information
mdipierro committed Jun 4, 2022
1 parent 842994d commit a181b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications/admin/controllers/default.py
Expand Up @@ -12,7 +12,7 @@
from gluon.admin import *
from gluon.fileutils import abspath, read_file, write_file
from gluon.utils import web2py_uuid
from gluon.tools import Config
from gluon.tools import Config, prevent_open_redirect
from gluon.compileapp import find_exposed_functions
from glob import glob
from gluon._compat import iteritems, PY2, pickle, xrange, urlopen, to_bytes, StringIO, to_native, reload
Expand Down Expand Up @@ -118,7 +118,7 @@ def get_app(name=None):
def index():
""" Index handler """

send = request.vars.send
send = prevent_open_redirect(request.vars.send)
if DEMO_MODE:
session.authorized = True
session.last_time = t0
Expand Down

0 comments on commit a181b85

Please sign in to comment.