# HG changeset patch # User Sylvain Thénault # Date 1295538321 -3600 # Node ID 8bee6dfdbe96cdff56a9faa3451365d27bf203a5 # Parent 9d4e11d6e783d343d6d36e4a7158a03fe316ac03 [ajax] apply Ronan Dunklau patch closing #1433305: loadRemote js function failure on Firefox 4 with upper cased base domain name diff -r 9d4e11d6e783 -r 8bee6dfdbe96 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) {