* [FIX] Critical bugfix that prevents directory traversal in JS/CSS includes. Thanks to Jan Van for the notice

This commit is contained in:
nuxsmin
2016-12-24 13:02:48 +01:00
committed by Rubén Domínguez
parent f2f71e961b
commit b3f064a461
13 changed files with 56 additions and 14 deletions

View File

@@ -52,7 +52,7 @@ if (!$file) {
$Minify = new Minify();
$Minify->setType(Minify::FILETYPE_CSS);
$Minify->setBase(\SP\Init::$SERVERROOT . urldecode($base));
$Minify->setBase(urldecode($base));
$Minify->addFile(urldecode($file));
$Minify->getMinified();
}