Fix: Bad management of error

This commit is contained in:
Laurent Destailleur 2015-03-02 01:05:12 +01:00
parent 495d066cfc
commit ba98f6f94a
2 changed files with 23 additions and 1 deletions

View File

@ -23,6 +23,21 @@ Replace call to serialize_val with no bugged value
FPDI:
-----
Replace:
$this->_readXref($this->_xref, $this->_findXref());
with:
try {
$this->_readXref($this->_xref, $this->_findXref());
}
catch(Exception $e)
{
print $e->getMessage();
exit;
}
TCPDF:
------
* Removed all fonts except

View File

@ -199,7 +199,14 @@ class pdf_parser
// Read xref-Data
$this->_xref = array();
$this->_readXref($this->_xref, $this->_findXref());
try {
$this->_readXref($this->_xref, $this->_findXref());
}
catch(Exception $e)
{
print $e->getMessage();
exit;
}
// Check for Encryption
$this->getEncryption();