Skip to content
Snippets Groups Projects
Commit 29ac88d5 authored by m431m's avatar m431m :speech_balloon:
Browse files

Added logging warning

parent 5fd97208
No related branches found
No related tags found
No related merge requests found
......@@ -994,7 +994,9 @@ class MRA(object):
# full_path = os.path.realpath(os.path.join(root, *args))
full_path = os.path.join(root, *args)
if not full_path.startswith(os.path.realpath(root)):
raise webapp.Forbidden("Path \"%s\" outside root directory." % full_path)
message = "Path \"%s\" outside root directory." % full_path
logging.warning(message)
raise webapp.Forbidden(message)
return full_path
def mk_path(self, path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment