fix array decoding
This commit is contained in:
parent
3670d86420
commit
e93ed788bd
1 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#################################
|
||||
#
|
||||
# $Dwarf: uuencode.rb,v 1.2 2003/04/20 16:34:11 ward Exp $
|
||||
# $Dwarf: uuencode.rb,v 1.3 2003/04/20 16:58:07 ward Exp $
|
||||
# $Source$
|
||||
#
|
||||
# article.rb
|
||||
|
|
@ -141,8 +141,10 @@ def _uudecode_array(data)
|
|||
next if line =~ /[a-z]/
|
||||
next if line == nil
|
||||
next unless ((((line[0] - 32) & 077) + 2) / 3).to_i == (line.length/4).to_i
|
||||
unless line.unpack("u").eql?([""])
|
||||
decode.concat(line.unpack("u"))
|
||||
end
|
||||
end
|
||||
|
||||
print "No \"end\" found!!!\n"
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue