mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-04 14:46:24 +00:00
Monotone-Parent: cef7b2ad79ff11b1de6c82ad77501b4fa8f1d757
Monotone-Revision: 3539c42aae20e261ff13b48d62442061a6765b69 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-03-26T20:49:30 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -21,7 +21,7 @@ function onLoginClick(event) {
|
||||
|
||||
if (userName.length > 0) {
|
||||
var url = $("connectForm").getAttribute("action");
|
||||
var parameters = ("userName=" + userName + "&password=" + password);
|
||||
var parameters = ("userName=" + encodeURI(userName) + "&password=" + encodeURI(password));
|
||||
document.cookie = "";
|
||||
triggerAjaxRequest(url, onLoginCallback, null, parameters,
|
||||
{ "Content-type": "application/x-www-form-urlencoded",
|
||||
@@ -37,7 +37,7 @@ function onLoginCallback(http) {
|
||||
if (isHttpStatus204(http.status)) {
|
||||
var userName = $("userName").value;
|
||||
var address = "" + window.location.href;
|
||||
var baseAddress = ApplicationBaseURL + $("userName").value;
|
||||
var baseAddress = ApplicationBaseURL + encodeURI(userName);
|
||||
var altBaseAddress;
|
||||
if (baseAddress[0] == "/") {
|
||||
var parts = address.split("/");
|
||||
|
||||
Reference in New Issue
Block a user