]> source.dussan.org Git - nextcloud-server.git/commitdiff
Sanitzing user input
authorLukas Reschke <lukas@statuscode.ch>
Sun, 10 Jun 2012 21:16:59 +0000 (23:16 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Sun, 10 Jun 2012 21:16:59 +0000 (23:16 +0200)
apps/user_ldap/settings.php

index 9c0620578bee572560492f65ac25e17185f1bbdf..f1a474ff27d9fa1c59f030a73f533fb2d1ed73d2 100644 (file)
@@ -47,7 +47,7 @@ if ($_POST) {
 // fill template
 $tmpl = new OCP\Template( 'user_ldap', 'settings');
 foreach($params as $param){
-               $value = OCP\Config::getAppValue('user_ldap', $param,'');
+               $value = htmlentities(OCP\Config::getAppValue('user_ldap', $param,''));
                $tmpl->assign($param, $value);
 }