Update descartes framework to improve env.php constants handling

This commit is contained in:
osaajani 2024-02-25 11:04:45 +01:00
parent cf4dd2f075
commit 6321899e02
7 changed files with 48 additions and 40 deletions

View file

@ -72,6 +72,10 @@
protected static function clean_url (string $url)
{
$to_remove = parse_url(HTTP_PWD, PHP_URL_PATH);
if ($to_remove === null)
{
return $url;
}
$url = mb_strcut($url, mb_strlen($to_remove));
$url = parse_url($url, PHP_URL_PATH);