summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-08-10 08:27:40 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-08-10 08:27:40 +0000
commit77f0464b4757385011a1cf5bce2ab20a30a73a52 (patch)
tree712853f6dcd80a851b094417d76d1d9db3afde6c /roundcubemail/program/js
parent881fdfae9ca7810e065a2965304729d561071c29 (diff)
Some bugfixes, security issues + minor improvements
git-svn-id: https://svn.roundcube.net/trunk@668 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index bda67002e..6cf9d4850 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -463,7 +463,7 @@ function rcube_webmail()
break;
case 'logout':
- this.goto_url('logout');
+ this.goto_url('logout', true);
break;
// commands to switch task
@@ -3195,7 +3195,7 @@ function rcube_webmail()
this.redirect = function(url, lock)
{
- if (lock || lock == NULL)
+ if (lock || lock === null)
this.set_busy(true);
if (this.env.framed && window.parent)
@@ -3498,12 +3498,13 @@ function rcube_http_request()
return false;
}
- var ref = this;
+ var _ref = this;
this.url = url;
this.busy = true;
- this.xmlhttp.onreadystatechange = function(){ ref.xmlhttp_onreadystatechange(); };
+ this.xmlhttp.onreadystatechange = function(){ _ref.xmlhttp_onreadystatechange(); };
this.xmlhttp.open('GET', url);
+ this.xmlhttp.setRequestHeader('X-RoundCube-Referer', bw.get_cookie('sessid'));
this.xmlhttp.send(null);
};
@@ -3537,6 +3538,7 @@ function rcube_http_request()
this.xmlhttp.onreadystatechange = function() { ref.xmlhttp_onreadystatechange(); };
this.xmlhttp.open('POST', url, true);
this.xmlhttp.setRequestHeader('Content-Type', contentType);
+ this.xmlhttp.setRequestHeader('X-RoundCube-Referer', bw.get_cookie('sessid'));
this.xmlhttp.send(req_body);
};