1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-11 16:44:44 +02:00

Merge pull request #696 from 0m3r/patch-1

Fix null argument to preg_split
This commit is contained in:
Elan Ruusamäe
2022-05-14 14:11:22 +03:00
committed by GitHub

View File

@@ -259,7 +259,7 @@ class Minify_CSS_Compressor
{
// 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))) {