scottjehl/Respond

Fails to rip CSS when inline credentials are used in the URL

davemateer opened this issue · 0 comments

CSS URLs of the format http://username:password@host.com/ do not pass the validation necessary to add them to the queue of files to request via AJAX.

One fix (may not be the most optimal and not exhaustively tested) would be to make the following change around line 200:

if (!/^([a-zA-Z:]*\/\/)/.test(href) && !base || href.replace(RegExp.$1, "").split("/")[0] === w.location.host || href.replace(RegExp.$1, "").split("/")[0].replace(/^[a-zA-Z0-9]+:[a-zA-Z0-9]+@/, "") === w.location.host) {
  ...
}