Sanitzing user input
This commit is contained in:
parent
f8337c9d72
commit
d294373f47
|
@ -47,7 +47,7 @@ if ($_POST) {
|
||||||
// fill template
|
// fill template
|
||||||
$tmpl = new OCP\Template( 'user_ldap', 'settings');
|
$tmpl = new OCP\Template( 'user_ldap', 'settings');
|
||||||
foreach($params as $param){
|
foreach($params as $param){
|
||||||
$value = OCP\Config::getAppValue('user_ldap', $param,'');
|
$value = htmlentities(OCP\Config::getAppValue('user_ldap', $param,''));
|
||||||
$tmpl->assign($param, $value);
|
$tmpl->assign($param, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue