Python: URI decoding: now properly checking that paths can be encoded in
ASCII (issue #89)
This commit is contained in:
1 parent
405e6ef420
commit
8bd6d6c8e9
1 file changed
+3
@@ -174,6 +174,9 @@ def open_uri(uri,
|
|||||||
dms_only=False,
|
dms_only=False,
|
||||||
force_file=False):
|
force_file=False):
|
||||||
|
|
||||||
|
if not uri.isascii():
|
||||||
|
raise Exception("Paths must be ASCII characters only")
|
||||||
|
|
||||||
cdef bytes urib = tobytes(uri)
|
cdef bytes urib = tobytes(uri)
|
||||||
cdef bytes scheme
|
cdef bytes scheme
|
||||||
cdef tuple dms
|
cdef tuple dms
|
||||||
|
|||||||
Reference in new issue
Block a user