1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-12 00:54:35 +02:00

strict comparison

This commit is contained in:
Elan Ruusamäe
2018-01-05 14:33:10 +02:00
parent 0038cdb5de
commit d3decb27e1
2 changed files with 3 additions and 3 deletions

View File

@@ -194,10 +194,10 @@ class Minify_ImportProcessor
$parts = array_filter(explode(DIRECTORY_SEPARATOR, $path), 'strlen');
$absolutes = array();
foreach ($parts as $part) {
if ('.' == $part) {
if ('.' === $part) {
continue;
}
if ('..' == $part) {
if ('..' === $part) {
array_pop($absolutes);
} else {
$absolutes[] = $part;