Skip to content

Commit 4aeef04

Browse files
Roman SyroeshkoRoman Syroeshko
authored andcommitted
Fix for tests 5.
1 parent 0da5eb1 commit 4aeef04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PhpWord/Reader/Word2007.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ public function canRead($pFilename)
8383
public function getFromZipArchive($archive, $fileName = '', $removeNamespace = false)
8484
{
8585
// Root-relative paths
86-
if (strpos($fileName, '//') !== false) {
87-
$fileName = substr($fileName, strpos($fileName, '//') + 1);
88-
}
89-
$fileName = realpath($fileName);
86+
// if (strpos($fileName, '//') !== false) {
87+
// $fileName = substr($fileName, strpos($fileName, '//') + 1);
88+
// }
89+
// $fileName = realpath($fileName);
9090

9191
// Apache POI fixes
9292
$contents = $archive->getFromName($fileName);

0 commit comments

Comments
 (0)