Merge pull request #934 from niphlod/fix/931
fixes #931 . Thanks @butsyk for spotting the bug
This commit is contained in:
+1
-1
@@ -5362,7 +5362,7 @@ class Expose(object):
|
|||||||
if current.request.raw_args:
|
if current.request.raw_args:
|
||||||
self.args = [arg for arg in current.request.raw_args.split('/') if arg]
|
self.args = [arg for arg in current.request.raw_args.split('/') if arg]
|
||||||
else:
|
else:
|
||||||
self.args = [arg for arg in current.request.args if args]
|
self.args = [arg for arg in current.request.args if arg]
|
||||||
filename = os.path.join(base, *self.args)
|
filename = os.path.join(base, *self.args)
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
raise HTTP(404, "FILE NOT FOUND")
|
raise HTTP(404, "FILE NOT FOUND")
|
||||||
|
|||||||
Reference in New Issue
Block a user