1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Enhancement: Enable and configure concat_space fixer

Closes GH-657.
This commit is contained in:
Andreas Möller
2022-08-22 19:04:47 +02:00
committed by GitHub
parent d9bcfed482
commit 57f505ed58
20 changed files with 58 additions and 55 deletions

View File

@@ -18,7 +18,7 @@ if (!isset($_GET["f"])) {
exit;
}
$pwd = realpath($_SERVER["DOCUMENT_ROOT"]);
$abs = $pwd. "/" .(string)$_GET["f"];
$abs = $pwd . "/" . (string)$_GET["f"];
$abs = realpath($abs);
if (strncmp($abs, $pwd, strlen($pwd)) != 0) {