# HG changeset patch # User Adrien Di Mascio # Date 1301326761 -7200 # Node ID 3b0f1c2af20f4c9e5003cd9e436fd7d2549feef3 # Parent c2badb6de3fe4edf744ba8f5a328cfcc768fffe3 [javascript] fix loadRemote test for JSON_BASE_URL / baseuri matching put both url and baseuri() to lowercase since baseuri() might have uppercase characters. Thanks to Florent for spotting this. diff -r c2badb6de3fe -r 3b0f1c2af20f web/data/cubicweb.ajax.js --- a/web/data/cubicweb.ajax.js Mon Mar 28 16:42:54 2011 +0200 +++ b/web/data/cubicweb.ajax.js Mon Mar 28 17:39:21 2011 +0200 @@ -283,7 +283,7 @@ * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST'). */ function loadRemote(url, form, reqtype, sync) { - if (!url.toLowerCase().startswith(baseuri())) { + if (!url.toLowerCase().startswith(baseuri().toLowerCase())) { url = baseuri() + url; } if (!sync) {