• louthenw

    (@louthenw)


    When a stylesheet has a single quote followed by a forward slash – it appears that the plugin thinks it is reading a relative address and tries to convert it into an absolute address – but it does not handle this code correctly. I have shown a before and after below.

    With the result of this processing – the element now has a double quote in the middle of the line – and a duplicated domain/folder structure. This not only breaks the element itself – but all following elements within that stylesheet.

    While I do have the ability to repair this within my own stylesheets – there are many plugins that use this syntax that are disrupted by this processing.

    url(‘//www.domain-name.com/wp-content/folder-structure/filename.ext’);

    url(http://www.domain-name.com/wp-content/folder-structure/&#8221://www.domain-name.com/wp-content/folder-structure/filename.ext);

    https://ww.wp.xz.cn/plugins/async-js-and-css/

The topic ‘Single Quote Bug’ is closed to new replies.