Commit 0efe5bf5 0efe5bf5223d334a7b18d8ad07faeebffee42fab by Nicolas Perriault

fixed utils.cleanUrl() with relative urls

1 parent 5f514cb7
......@@ -68,7 +68,7 @@ exports.betterTypeOf = betterTypeOf;
*/
function cleanUrl(url) {
"use strict";
if (url.indexOf('/') === 0) {
if (url.toLowerCase().indexOf('http') !== 0) {
return url;
}
var a = document.createElement('a');
......