From: Greg Burri Date: Sat, 4 Oct 2008 22:32:32 +0000 (+0000) Subject: FIX traitement du cas ou plusieurs valeurs précède la valeur "cookie=.." dans le... X-Git-Tag: 1.1.3~18 X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=commitdiff_plain;h=3f3bfc46e456b3e292cc9ad0fc574021796aaee5 FIX traitement du cas ou plusieurs valeurs précède la valeur "cookie=.." dans le cookie.. normalement ne devrait jamais arriver --- diff --git a/js/client.js b/js/client.js index 49f7749..c378075 100644 --- a/js/client.js +++ b/js/client.js @@ -26,7 +26,7 @@ euphorik.Client = function(util, communication) { this.communication = communication; this.cookie = null; - this.regexCookie = /^cookie=([^;]*)/; + this.regexCookie = /cookie=([^;]*)/; // données personnels this.resetDonneesPersonnelles(); @@ -295,7 +295,7 @@ euphorik.Client.prototype.getJSONEnregistrement = function(login, password) { }; /** - * Connexion. Réalisée de manière synchrone. + * Connexion. Réalisé de manière synchrone. */ euphorik.Client.prototype.connexion = function(action, messageJson) { var thisClient = this; @@ -369,7 +369,7 @@ euphorik.Client.prototype.flush = function(async) { if (!this.authentifie()) { return false; } - + var thisClient = this; var ok = true;