Skip to content

Commit 96d7218

Browse files
committed
Escape special characters.
1 parent 06ea34b commit 96d7218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sabberworm/CSS/Value/Size.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function isRelative() {
6161

6262
public function __toString() {
6363
$l = localeconv();
64-
return preg_replace(array('/' . $l['decimal_point'] . '/', '/^0./'), '.', $this->fSize) . ($this->sUnit === null ? '' : $this->sUnit);
64+
return preg_replace(array('/' . preg_quote($l['decimal_point'], '/') . '/', '/^0\./'), '.', $this->fSize) . ($this->sUnit === null ? '' : $this->sUnit);
6565
}
6666

6767
}

0 commit comments

Comments
 (0)