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$
|
# $Source$
|
||||||
#
|
#
|
||||||
# article.rb
|
# article.rb
|
||||||
|
|
@ -141,7 +141,9 @@ def _uudecode_array(data)
|
||||||
next if line =~ /[a-z]/
|
next if line =~ /[a-z]/
|
||||||
next if line == nil
|
next if line == nil
|
||||||
next unless ((((line[0] - 32) & 077) + 2) / 3).to_i == (line.length/4).to_i
|
next unless ((((line[0] - 32) & 077) + 2) / 3).to_i == (line.length/4).to_i
|
||||||
decode.concat(line.unpack("u"))
|
unless line.unpack("u").eql?([""])
|
||||||
|
decode.concat(line.unpack("u"))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
print "No \"end\" found!!!\n"
|
print "No \"end\" found!!!\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue