Hallvard B Furuseth <h.b.furus...@usit.uio.no> added the comment: ,AC�ric Araujo writes: > Attaching a patch with your two suggestions. > Added file: http://bugs.python.org/file19264/fix10086.diff
Not quite, since I suggested global_path.startswith(os.path.join(base, "")) instead of global_path.startswith(base) I should have mentioned, the join appends a directory terminator to base. Not sure if that's the correct way to do it. Anyway, your patch does not catch a similar failure (if this can happen): base = "/site" global_path = "/site-nonsense/..." ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10086> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com