145
145
urlpath = os.path.normpath(req.path)
146
146
# Now if it begins with ".." or separator, then it's illegal
147
147
if urlpath.startswith("..") or urlpath.startswith(os.sep):
150
150
(owner, _) = util.split_path(urlpath)
154
155
def authorize_public(req):
155
156
"""A different kind of authorization. Rather than making sure the