[Pkg-owncloud-commits] [owncloud] 22/394: Backport of pull request #155

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:18 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 725e7331781bfd45b7fe4049a796037c637b9b87
Author: Lukas Reschke <lukas at statuscode.ch>
Date:   Wed Oct 31 13:00:07 2012 +0100

    Backport of pull request #155
    
    Send the requesttoken as form value
    
    Fixes #98
---
 apps/files/templates/index.php |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index d49f2f4..f614f02 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[]'/>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list