[ajax] apply Ronan Dunklau patch closing #1433305: loadRemote js function failure on Firefox 4 with upper cased base domain name stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 20 Jan 2011 16:45:21 +0100
branchstable
changeset 6862 8bee6dfdbe96
parent 6861 9d4e11d6e783
child 6863 2e52db5cdbde
[ajax] apply Ronan Dunklau patch closing #1433305: loadRemote js function failure on Firefox 4 with upper cased base domain name
web/data/cubicweb.ajax.js
--- a/web/data/cubicweb.ajax.js	Thu Jan 20 16:36:09 2011 +0100
+++ b/web/data/cubicweb.ajax.js	Thu Jan 20 16:45:21 2011 +0100
@@ -283,7 +283,7 @@
  * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST').
  */
 function loadRemote(url, form, reqtype, sync) {
-    if (!url.startswith(baseuri())) {
+    if (!url.toLowerCase().startswith(baseuri())) {
         url = baseuri() + url;
     }
     if (!sync) {