Skip to content

Commit 091c051

Browse files
committed
Fixes issue dompdf#6 (colors wrongly parsed)
1 parent bbf6f9e commit 091c051

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Svg/Style.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* @package php-svg-lib
44
* @link http://github.com/PhenX/php-svg-lib
5-
* @author Fabien Ménager <fabien.menager@gmail.com>
5+
* @author Fabien M�nager <fabien.menager@gmail.com>
66
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
77
*/
88

@@ -173,7 +173,7 @@ static function parseColor($color)
173173
{
174174
$color = strtolower(trim($color));
175175

176-
$parts = preg_split('/\s+/', $color, 2);
176+
$parts = preg_split('/[^,]\s+/', $color, 2);
177177

178178
if (count($parts) == 2) {
179179
$color = $parts[1];

0 commit comments

Comments
 (0)