Skip to content

Commit d4c4f67

Browse files
fbueschertridge
authored andcommitted
fixed remove multiple leading slashes
1 parent a4b926d commit d4c4f67

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

support/rrsync

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ def validated_arg(opt, arg, typ=3, wild=False):
301301
if arg.startswith('./'):
302302
arg = arg[1:]
303303
arg = arg.replace('//', '/')
304+
arg = arg.lstrip('/')
304305
if args.dir != '/':
305306
if HAS_DOT_DOT_RE.search(arg):
306307
die("do not use .. in", opt, "(anchor the path at the root of your restricted dir)")

0 commit comments

Comments
 (0)