mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 05:31:58 +01:00
gui: catch exception for Zend_Mime_Decode::splitMessageStruct()
Change-Id: Ib02363d91e568bad89d958863cb61d23776975f0 Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
parent
a831d8cd2e
commit
caa7aba8e1
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require 'Zend/Mime/Decode.php';
|
require 'Zend/Mime/Decode.php';
|
||||||
|
require 'Zend/Exception.php';
|
||||||
|
|
||||||
class ModelSearchMessage extends Model {
|
class ModelSearchMessage extends Model {
|
||||||
|
|
||||||
@ -258,7 +259,12 @@ class ModelSearchMessage extends Model {
|
|||||||
$mime_parts = array();
|
$mime_parts = array();
|
||||||
|
|
||||||
if($boundary) {
|
if($boundary) {
|
||||||
$mime_parts = Zend_Mime_Decode::splitMessageStruct($body, $boundary);
|
try {
|
||||||
|
$mime_parts = Zend_Mime_Decode::splitMessageStruct($body, $boundary);
|
||||||
|
}
|
||||||
|
catch (Exception $e) {
|
||||||
|
syslog(LOG_INFO, "Caught exception: " . $e->getMessage());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$mime_parts[] = array('header' => $headers, 'body' => $body);
|
$mime_parts[] = array('header' => $headers, 'body' => $body);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user