From: vincent@cubedesigners.com Date: Fri, 24 Jun 2022 08:06:57 +0000 (+0000) Subject: wait #5331 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=767fa7cd98d1993bea29b8627bb69db1a6cfa9cf;p=cubeextranet.git wait #5331 @0:10 --- 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);