From 767fa7cd98d1993bea29b8627bb69db1a6cfa9cf Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 24 Jun 2022 08:06:57 +0000 Subject: [PATCH] wait #5331 @0:10 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index cb45b9d06..a7470f5cb 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1876,6 +1876,9 @@ height="0" width="0" style="display:none;visibility:hidden"> $this->config->pdfName = 'document.pdf'; } $this->config->pdfName = CubeIT_Text::removeAccents($this->config->pdfName); + if (mb_strtolower(substr($this->config->pdfName, -4)) !== '.pdf') { + $this->config->pdfName .= '.pdf'; + } if ($res !== false) { $this->vdir->copy($res, 'data/' . $this->config->pdfName); -- 2.39.5