diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-14 18:00:13 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-14 18:00:13 +0200 |
commit | 5b1a14f9ea93d8e4f9d90111fd1e95026a88c512 (patch) | |
tree | 8459401f8984586493f7e9ebfddc3ba17e26f782 /core/templates | |
parent | 3e143601fe1ab6df22831114b3e10b317d89cf6c (diff) | |
download | nextcloud-server-5b1a14f9ea93d8e4f9d90111fd1e95026a88c512.tar.gz nextcloud-server-5b1a14f9ea93d8e4f9d90111fd1e95026a88c512.zip |
Contacts: Implement CSRF prevention.
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/layout.user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index f9d87981359..25281c452a5 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -26,7 +26,7 @@ <?php endforeach; ?> <script type="text/javascript"> $(function() { - var requesttoken = '<?php echo $_['requesttoken']; ?>'; + requesttoken = '<?php echo $_['requesttoken']; ?>'; $(document).bind('ajaxSend', function(elm, xhr, s){ if(requesttoken) { xhr.setRequestHeader('requesttoken', requesttoken); |