This fix allows for URLs to be enclosed in quotes. The existing code tests for the opening quote in the wrong place, it should be at the beginning of the URL.
Fix minifyCSS() for Quoted URLs in Media.php
thank you for your contribution, can you please sync your fork and check if this PR is still relevant ?
Having reviewed the up to date repository I believe that a change to minifyCSS() is still warranted. The proposed modification will only call replaceByAbsoluteURL() where data:, http: or https: is not specified. This removed unnecessary calls to replaceByAbsoluteURL(). The modified regex is also slightly more efficient.
In addition replaceByAbsoluteURL() has been modified to correctly handle absolute addresses i.e. those beginning with /
I have created a new pull request #2867 for this and marking #1516 closed.