[js] always lowercase baseuri #1433305 stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 20 Jan 2011 19:18:11 +0100
branchstable
changeset 6858 393300fc3fdd
parent 6857 8d2062387134
child 6859 ace0b991e17b
[js] always lowercase baseuri #1433305
web/data/cubicweb.htmlhelpers.js
--- a/web/data/cubicweb.htmlhelpers.js	Wed Jan 19 19:19:56 2011 +0100
+++ b/web/data/cubicweb.htmlhelpers.js	Thu Jan 20 19:18:11 2011 +0100
@@ -18,9 +18,9 @@
 function baseuri() {
     var uri = document.baseURI;
     if (uri) { // some browsers don't define baseURI
-        return uri;
+        return uri.toLowerCase();
     }
-    return jQuery('base').attr('href');
+    return jQuery('base').attr('href').toLowerCase();
 }
 
 /**