diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-10-31 04:50:18 -0700 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-10-31 04:50:18 -0700 |
commit | b76306c1440ce9546e9853eb7199194ccffb77ef (patch) | |
tree | 152d54317b59d5b69eeb412ac8ecb60e2c6393bd /apps | |
parent | f851738169546c6e5e8e534fca749380c066438e (diff) | |
parent | 116fa64294167c41c074f9393efd0e7ff89ea295 (diff) | |
download | nextcloud-server-b76306c1440ce9546e9853eb7199194ccffb77ef.tar.gz nextcloud-server-b76306c1440ce9546e9853eb7199194ccffb77ef.zip |
Merge pull request #155 from owncloud/token-expired-IE
Send the requesttoken as form value
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/templates/index.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index d49f2f4d5d3..f614f02b6c2 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -14,6 +14,8 @@ <div class="file_upload_wrapper svg"> <form data-upload-id='1' id="data-upload-form" class="file_upload_form" action="<?php echo OCP\Util::linkTo('files', 'ajax/upload.php'); ?>" method="post" enctype="multipart/form-data" target="file_upload_target_1"> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload"> + <!-- Send the requesttoken, this is needed for older IE versions because they don't send the CSRF token via HTTP header in this case --> + <input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken"> <input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)"> <input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir"> <input class="file_upload_start" type="file" name='files[]'/> |