Skip to content

Commit 7dfacc0

Browse files
fbueschertridge
authored andcommitted
fixed remove multiple leading slashes
1 parent 1c5ebdc commit 7dfacc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

support/rrsync

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

0 commit comments

Comments
 (0)