This commit is contained in:
Dennis Eichhorn 2023-10-23 00:27:55 +00:00
parent 927ea35736
commit 2b8ca15e66

View File

@ -11363,8 +11363,10 @@ class Mpdf implements \Psr\Log\LoggerAwareInterface
if (!$str) {
if (isset($_SERVER['SCRIPT_NAME'])) {
$currentPath = dirname($_SERVER['SCRIPT_NAME']);
} else {
} elseif (isset($_SERVER['PHP_SELF'])) {
$currentPath = dirname($_SERVER['PHP_SELF']);
} else {
$currentPath = __DIR__ . '/../../';
}
$currentPath = str_replace("\\", "/", $currentPath);
if ($currentPath == '/') {