Fix CSSMin url() remapping when comments in CSS contain curly braces
authorStephan Gambke <s7eph4n@gmail.com>
Thu, 12 Jun 2014 21:55:33 +0000 (23:55 +0200)
committerFoxtrott <s7eph4n@gmail.com>
Mon, 30 Jun 2014 09:14:10 +0000 (09:14 +0000)
commit3b1b2b0c33714e5768421ea4a87a97aa2ff8717a
tree911c2dc7cafc200c33fc7f657bdf8e95d5f3416e
parent2f901b62a640a1d5b126ca365db030ca51db3319
Fix CSSMin url() remapping when comments in CSS contain curly braces

Remapping of url()s was thrown off if the CSS contained comments
with curly braces. To fix, replace all block comments (except @embed
directives) with placeholders before url() processing and swap them
back in afterwards. Patch also includes tests.

Bug: 60077
Change-Id: If18a93c17ea9bcd529f6a664aa2dcc51d4a37f38
includes/libs/CSSMin.php
tests/phpunit/includes/libs/CSSMinTest.php