about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortrk <dev.trk.9001@gmail.com>2021-03-04 02:39:57 +0600
committerGitHub <noreply@github.com>2021-03-04 02:39:57 +0600
commit3c87c41a400c8630b21d19c8a8513f12a0ad9a21 (patch)
tree2bdae9790c4e9ce403c21c32ca607c093a57cd03
parentf1d98c1edef3a3aa656ca242df844c7a438a03eb (diff)
downloadranger-3c87c41a400c8630b21d19c8a8513f12a0ad9a21.tar.gz
Fix incorrect file URI scheme prefix
For the correct file URI scheme specification, see RFC 8089 at https://tools.ietf.org/html/rfc8089.
-rw-r--r--ranger/core/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 15943fec..8bfb03e7 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -244,7 +244,7 @@ https://github.com/ranger/ranger/issues
 
 def get_paths(args):
     if args.paths:
-        prefix = 'file:///'
+        prefix = 'file://'
         prefix_length = len(prefix)
         paths = [path[prefix_length:] if path.startswith(prefix) else path for path in args.paths]
     else: