Skip to content

Commit

Permalink
[jan] Make dependency on File_ASN1 optional.
Browse files Browse the repository at this point in the history
Conflicts:
	imp/docs/CHANGES
	imp/package.xml
  • Loading branch information
yunosh committed Jan 16, 2015
1 parent 8f61ef8 commit 32c1a89
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions imp/docs/CHANGES
Expand Up @@ -56,6 +56,7 @@ v7.0.0-git
v6.2.6
------

[jan] Make dependency on File_ASN1 optional.
[mms] Fix double listing of mailboxes in certain instances when subscriptions
are active and unsubscribed mailboxes are shown.

Expand Down
4 changes: 4 additions & 0 deletions imp/lib/Mime/Viewer/Smime.php
Expand Up @@ -427,6 +427,10 @@ protected function _getSmimeType(Horde_Mime_Part $part)
return strtolower($type);
}

if (!class_exists('File_ASN1')) {
return null;
}

$asn1 = new File_ASN1();
$decoded = $asn1->decodeBER($part->getContents());

Expand Down
9 changes: 5 additions & 4 deletions imp/package.xml
Expand Up @@ -1452,10 +1452,6 @@
<max>3.0.0alpha1</max>
<exclude>3.0.0alpha1</exclude>
</package>
<package>
<name>File_ASN1</name>
<channel>phpseclib.sourceforge.net</channel>
</package>
<extension>
<name>dom</name>
</extension>
Expand Down Expand Up @@ -1491,6 +1487,10 @@
<max>2.0.0alpha1</max>
<exclude>2.0.0alpha1</exclude>
</package>
<package>
<name>File_ASN1</name>
<channel>phpseclib.sourceforge.net</channel>
</package>
<extension>
<name>openssl</name>
</extension>
Expand Down Expand Up @@ -3732,6 +3732,7 @@
<date>2015-01-14</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [jan] Make dependency on File_ASN1 optional.
* [mms] Fix double listing of mailboxes in certain instances when subscriptions are active and unsubscribed mailboxes are shown.
</notes>
</release>
Expand Down

0 comments on commit 32c1a89

Please sign in to comment.