mirror of
https://github.com/mrclay/minify.git
synced 2025-08-12 09:05:08 +02:00
Merge pull request #696 from 0m3r/patch-1
Fix null argument to preg_split
This commit is contained in:
@@ -259,7 +259,7 @@ class Minify_CSS_Compressor
|
|||||||
{
|
{
|
||||||
// Issue 210: must not eliminate WS between words in unquoted families
|
// Issue 210: must not eliminate WS between words in unquoted families
|
||||||
$flags = PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY;
|
$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:';
|
$out = 'font-family:';
|
||||||
|
|
||||||
while (null !== ($piece = array_shift($pieces))) {
|
while (null !== ($piece = array_shift($pieces))) {
|
||||||
|
Reference in New Issue
Block a user