scott-xu/System.Web.Optimization.Less — pull request #18 by tomlokhorst (2014-03-17 16:00:24+00:00)
Title: Don't convert http urls to absolute path

The current version of LessBundle doesn't handle http urls in `url()` rules. For example:

src: url('//themes.googleusercontent.com/static/fonts/opensans.woff');

gets replaced by:

src: url(/themes.googleusercontent.com/static/fonts/opensans.woff);

When bundle optimisation is turned on. Note the "//themes" (incorrectly) gets replaced by "/themes".

This pull request fixes this issue, by explicitly checking if the url doesn't start with `//`, `http://`, or `https://`.