Skip to content

Commit 7adec63

Browse files
committed
Fixed handling of CSSString objects as OriginFunction arguments
1 parent 474666f commit 7adec63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/CSSValueList.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ public function execute($executor) {
120120

121121
$args = array();
122122
foreach($this->aComponents as $component){
123-
$args[] = (string) $component;
123+
$string = (string) $component;
124+
if($component instanceof CSSString) $string = trim($string, '"');
125+
$args[] = $string;
124126
}
125127

126128
$this->output = call_user_func_array(array($executor, $this->function), $args);

0 commit comments

Comments
 (0)