commit | 2ad5421dad86bc95aabe5c77f6034ee6ca699992 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Aug 31 09:34:09 2014 -0400 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Aug 31 09:34:09 2014 -0400 |
tree | bbf0cdb9e99b8913aec6326cc378b96445a11415 | |
parent | 3f48d394930097724d5eb01499896d52ced4c4fc [diff] [blame] |
don't index outside of the path (closes #22312)
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 228bbb3..fcaf21b 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py
@@ -113,7 +113,7 @@ """ if len(p) > 1: normp = p.replace(altsep, sep) - if (normp[0:2] == sep*2) and (normp[2] != sep): + if (normp[0:2] == sep*2) and (normp[2:3] != sep): # is a UNC path: # vvvvvvvvvvvvvvvvvvvv drive letter or UNC path # \\machine\mountpoint\directory\etc\...