[Pkg-owncloud-commits] [owncloud] 07/11: [user_ldap] Add requesttoken

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


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

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

commit b966095e8220ccf9bcbe98b47e4bec9b10ed78f6
Author: Lukas Reschke <lukas at statuscode.ch>
Date:   Sun Feb 3 20:03:32 2013 +0100

    [user_ldap] Add requesttoken
---
 apps/user_ldap/settings.php           |    2 ++
 apps/user_ldap/templates/settings.php |    1 +
 2 files changed, 3 insertions(+)

diff --git a/apps/user_ldap/settings.php b/apps/user_ldap/settings.php
index f77fb0a..8ff1be1 100644
--- a/apps/user_ldap/settings.php
+++ b/apps/user_ldap/settings.php
@@ -28,6 +28,8 @@ $params = array('ldap_host', 'ldap_port', 'ldap_dn', 'ldap_agent_password', 'lda
 OCP\Util::addscript('user_ldap', 'settings');
 
 if ($_POST) {
+	OCP\JSON::callCheck();
+
 	foreach($params as $param){
 		if(isset($_POST[$param])){
 			if('ldap_agent_password' == $param) {
diff --git a/apps/user_ldap/templates/settings.php b/apps/user_ldap/templates/settings.php
index 31f453b..6aa89b8 100644
--- a/apps/user_ldap/templates/settings.php
+++ b/apps/user_ldap/templates/settings.php
@@ -28,6 +28,7 @@
 		<p><label for="ldap_email_attr">Email Attribute</label><input type="text" id="ldap_email_attr" name="ldap_email_attr" value="<?php echo $_['ldap_email_attr']; ?>" /></p>
 	</fieldset>
 	<input type="submit" value="Save" /> <a href="http://owncloud.org/support/ldap-backend/" target="_blank"><img src="<?php echo OCP\Util::imagePath('','actions/info.png'); ?>" style="height:1.75ex" /> <?php echo $l->t('Help');?></a>
+	<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
 	</div>
 
 </form>

-- 
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