Fix for tests 5.

This commit is contained in:
Roman Syroeshko 2014-03-25 10:02:42 -07:00
parent 0da5eb12ad
commit 4aeef04afb
1 changed files with 4 additions and 4 deletions

View File

@ -83,10 +83,10 @@ class Word2007 extends AbstractReader implements IReader
public function getFromZipArchive($archive, $fileName = '', $removeNamespace = false) public function getFromZipArchive($archive, $fileName = '', $removeNamespace = false)
{ {
// Root-relative paths // Root-relative paths
if (strpos($fileName, '//') !== false) { // if (strpos($fileName, '//') !== false) {
$fileName = substr($fileName, strpos($fileName, '//') + 1); // $fileName = substr($fileName, strpos($fileName, '//') + 1);
} // }
$fileName = realpath($fileName); // $fileName = realpath($fileName);
// Apache POI fixes // Apache POI fixes
$contents = $archive->getFromName($fileName); $contents = $archive->getFromName($fileName);