[Web] Update libs

[Web] Update filename when downloading
This commit is contained in:
andryyy
2020-05-18 21:15:51 +02:00
parent 11820a4d3a
commit 667bd48163
71 changed files with 362 additions and 546 deletions

View File

@@ -71,6 +71,14 @@ class Converter implements ConverterInterface
// deal with different operating systems' directory structure
$path = rtrim(str_replace(DIRECTORY_SEPARATOR, '/', $path), '/');
// remove leading current directory.
if (substr($path, 0, 2) === './') {
$path = substr($path, 2);
}
// remove references to current directory in the path.
$path = str_replace('/./', '/', $path);
/*
* Example:
* /home/forkcms/frontend/cache/compiled_templates/../../core/layout/css/../images/img.gif