Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set tag on packet creation

  • Loading branch information...
commit 355ea44301aba513fb6b099c8490f1deba34bdd2 1 parent 1333a1a
@singpolyma singpolyma authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/openpgp.php
View
4 lib/openpgp.php
@@ -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() {
}
Please sign in to comment.
Something went wrong with that request. Please try again.