mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 01:46:27 +02:00
Update descartes framework to improve env.php constants handling
This commit is contained in:
parent
cf4dd2f075
commit
6321899e02
7 changed files with 48 additions and 40 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue