Permalink
Browse files

Set tag on packet creation

  • Loading branch information...
singpolyma committed Mar 31, 2010
1 parent 1333a1a commit 355ea44301aba513fb6b099c8490f1deba34bdd2
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/openpgp.php
View
@@ -258,7 +258,9 @@ static function parse_old_format($input) {
return array($tag, $head_length, $data_length);
}
- function __construct() {}
+ function __construct() {
+ $this->tag = array_search(substr(substr(get_class($this), 8), 0, -6), self::$tags);
+ }
function read() {
}

0 comments on commit 355ea44

Please sign in to comment.