Skip to content

Commit

Permalink
removing weird relative translation for strip
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Oct 23, 2024
1 parent d4ae32a commit 5b7179a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sarracenia/flow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,9 +893,6 @@ def updateFieldsAccepted(self, msg, urlstr, pattern, maskDir,
# the link and rename fields may be absolute, requiring and adjustment when stripping
if fopv[0] == '':
strip += 1
elif len(fopv) == 1:
toclimb=len(token)-1
msg['fileOp'][f] = '../'*(toclimb) + fopv[0]
if len(fopv) > strip:
rest=fopv[strip:]
toclimb=len(token)-rest.count('..')-1
Expand Down

0 comments on commit 5b7179a

Please sign in to comment.