'',
'chrome,centerscreen,modal',
{
- 'location' : 'https://' + obj.controller.view.server_prompt.value,
+ 'location' : 'https://' + obj.controller.view.server_prompt.value.match(/^[^\/]*/),
'prefetchCert' : true
}
);
obj.controller.view.server_prompt.value = url;
}
}
+ url = url.match(/^[^\/]*/).toString(); // Only test the pre-slash URL
obj.controller.view.submit_button.disabled = true;
obj.controller.view.server_prompt.disabled = true;
var s = document.getElementById('status');
this.controller.view.password_prompt.disabled = true;
this.controller.view.submit_button.disabled = true;
this.controller.view.apply_locale_btn.disabled = true;
- XML_HTTP_SERVER = this.controller.view.server_prompt.value;
+ XML_HTTP_SERVER = this.controller.view.server_prompt.value.match(/^[^\/]*/).toString();
try {
G.auth.on_login = function() {
- var url = G.auth.controller.view.server_prompt.value || urls.remote;
+ var url = G.auth.controller.view.server_prompt.value.match(/^[^\/]*/).toString() || urls.remote;
G.data.server_unadorned = url; G.data.stash('server_unadorned'); G.data.stash_retrieve();