This commit is contained in:
root
2025-11-13 19:52:28 +03:00
parent 8aeeb05b7d
commit 807dec3b6c
4646 changed files with 163445 additions and 626017 deletions

View File

@@ -177,6 +177,11 @@ class CTopPanel
$currentFilePath = $APPLICATION->GetCurPage(true);
}
if (self::isProtectedPath($currentFilePath))
{
return;
}
$encCurrentDirPath = urlencode($currentDirPath);
$encCurrentFilePath = urlencode($currentFilePath);
$encRequestUri = urlencode($_SERVER["REQUEST_URI"]);
@@ -1676,4 +1681,16 @@ class CTopPanel
return $result;
}
}
private static function isProtectedPath(string $pathOnDocumentRoot): bool
{
return
in_array($pathOnDocumentRoot, [
'/bitrix',
'/local/modules',
])
|| str_starts_with($pathOnDocumentRoot, '/bitrix/')
|| str_starts_with($pathOnDocumentRoot, '/local/modules/')
;
}
}