Skip to content

Commit

Permalink
Merge pull request #696 from 0m3r/patch-1
Browse files Browse the repository at this point in the history
Fix null argument to preg_split
  • Loading branch information
glensc authored May 14, 2022
2 parents 1c000f9 + 8b91de5 commit 2226a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Minify/CSS/Compressor.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ protected function _fontFamilyCB($m)
{
// Issue 210: must not eliminate WS between words in unquoted families
$flags = PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY;
$pieces = preg_split('/(\'[^\']+\'|"[^"]+")/', $m[1], null, $flags);
$pieces = preg_split('/(\'[^\']+\'|"[^"]+")/', $m[1], -1, $flags);
$out = 'font-family:';

while (null !== ($piece = array_shift($pieces))) {
Expand Down

0 comments on commit 2226a6a

Please sign in to comment.