mercurial/hgweb/common.py
changeset 36648 6585ac350fd9
parent 36647 052351e3e1cd
child 36781 ffa3026d4196
--- a/mercurial/hgweb/common.py	Sat Mar 03 12:34:35 2018 -0500
+++ b/mercurial/hgweb/common.py	Sat Mar 03 12:36:05 2018 -0500
@@ -138,7 +138,7 @@
     """Determine if a path is safe to use for filesystem access."""
     parts = path.split('/')
     for part in parts:
-        if (part in ('', os.curdir, pycompat.ospardir) or
+        if (part in ('', pycompat.oscurdir, pycompat.ospardir) or
             pycompat.ossep in part or
             pycompat.osaltsep is not None and pycompat.osaltsep in part):
             return False