CSSMin: Improve encoding of quotes in embedded SVGs
authorRoan Kattouw <roan.kattouw@gmail.com>
Wed, 13 Sep 2017 19:27:15 +0000 (12:27 -0700)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 19 Sep 2017 18:04:27 +0000 (18:04 +0000)
commit5e3165f0080961e637e9ed600b696786aee7eda4
treea8657e07a2ea26a409f1535aac4a6fb13e96a181
parent995b9ca4e5a0e8f3719e5e9cacdedfe7ea45f630
CSSMin: Improve encoding of quotes in embedded SVGs

When a URL (data: or otherwise) contains quotes, don't wrap it in
double quotes (") but in single quotes ('). This then allows
us to unencode double quotes (") in the data URI embedding of SVGs.

Bug: T175318
Change-Id: I3e7eab64e1c3e82066014fb594f82d786983ce90
includes/libs/CSSMin.php
tests/phpunit/includes/libs/CSSMinTest.php