Skip to content

Commit

Permalink
More fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Meatballs1 committed Aug 25, 2013
1 parent d45d37b commit 526e504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rex/zip/archive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def add_file(fname, fdata=nil, xtra=nil, comment=nil)
if (st.directory?)
attrs = EFA_ISDIR
fdata = ''
unless fname[-1] == '/'
fname << '/'
unless fname[-1,1] == '/'
fname += '/'
end
else
f = File.open(fname, 'rb')
Expand Down

0 comments on commit 526e504

Please sign in to comment.