Type byte is part of body

This commit is contained in:
Stephen Paul Weber 2010-03-31 14:25:21 -05:00
parent 97ad2cf72d
commit 5f6a93daca

View File

@ -414,12 +414,12 @@ class OpenPGP_SignaturePacket extends OpenPGP_Packet {
if($class) {
$packet = new $class();
$packet->tag = $tag;
$packet->input = substr($input, 1, $len);
$packet->length = $len;
$packet->input = substr($input, 1, $len-1);
$packet->length = $len-1;
$packet->read();
unset($packet->input);
}
$input = substr($input, $len+1); // Chop off the data from this packet
$input = substr($input, $len); // Chop off the data from this packet
return $packet;
}