From 8ffb82c18bcd081666c53312c20873db9e079500 Mon Sep 17 00:00:00 2001 From: "Stephan.Lachmann@HRZN.de" Date: Sun, 21 Mar 2021 12:56:01 +0100 Subject: [PATCH] #16 thanks to ArielZamparini-REISys --- src/Odf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Odf.php b/src/Odf.php index 3a07ccc..03f00ce 100644 --- a/src/Odf.php +++ b/src/Odf.php @@ -307,7 +307,7 @@ private function _save() $manifdata = $manifdata.''."\n"; } //Place content of $manifdata variable in manifest.xml file at appropriate place - $this->manifestXml = substr_replace($this->manifestXml, "\n".$manifdata, $lastpos+1, 0); + $replace = ''; $this->manifestXml = str_replace($replace, $replace . "\n" . $manifdata, $this->manifestXml); //$this->manifestXml = $this->manifestXml ."\n".$manifdata; if (! $this->file->addFromString('META-INF/manifest.xml', $this->manifestXml)) {