diff --git a/ext/phalcon/assets/filters/cssminifier.c b/ext/phalcon/assets/filters/cssminifier.c index d94fcf4bc97..0bb3f95dfcd 100644 --- a/ext/phalcon/assets/filters/cssminifier.c +++ b/ext/phalcon/assets/filters/cssminifier.c @@ -113,7 +113,7 @@ static int phalcon_cssmin_machine(cssmin_parser *parser, unsigned char c TSRMLS_ switch (parser->state) { case STATE_FREE: - if (c == ' ' && c == '\t' && c == '\n' && c == '\r') { + if (c == ' ' || c == '\t' || c == '\n' || c == '\r') { c = 0; } else if (c == '@'){ parser->state = STATE_ATRULE; diff --git a/tests/unit/Assets/Filters/CssMinTest.php b/tests/unit/Assets/Filters/CssMinTest.php index c78e46965ca..0258c6c230f 100644 --- a/tests/unit/Assets/Filters/CssMinTest.php +++ b/tests/unit/Assets/Filters/CssMinTest.php @@ -72,7 +72,7 @@ public function testAssetsFilterCssmin() "The cssmin filter with space as parameter does not return correct results", function () { $cssmin = new Cssmin(); - expect($cssmin->filter(' '))->equals(' '); + expect($cssmin->filter(' '))->equals(''); } );