Skip to content

Commit e56eaca

Browse files
committed
fix(ldapfield): HTML encoding when copying filter from GLPI
1 parent 15907b8 commit e56eaca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ajax/ldap_filter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
* ---------------------------------------------------------------------
3030
*/
3131

32+
use Glpi\Toolbox\Sanitizer;
33+
3234
include ('../../../inc/includes.php');
3335

3436
Session::checkRight('entity', UPDATE);
@@ -37,4 +39,5 @@
3739
$authldap->getFromDB($_POST['value']);
3840
$filter = "(".$authldap->getField("login_field")."=*)";
3941
$ldap_condition = $authldap->getField('condition');
42+
$ldap_condition = Sanitizer::decodeHtmlSpecialChars($ldap_condition);
4043
echo "(& $filter $ldap_condition)";

0 commit comments

Comments
 (0)