Skip to content

Commit

Permalink
[jan] Make dependency on File_ASN1 optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 16, 2015
1 parent 8e015d3 commit 34eb248
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions imp/docs/CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
v6.2.6-git
----------

[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
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,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
10 changes: 6 additions & 4 deletions imp/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
</stability>
<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>
<contents>
Expand Down Expand Up @@ -1476,10 +1477,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 @@ -1515,6 +1512,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 @@ -3798,6 +3799,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 34eb248

Please sign in to comment.