escape filter for output

This commit is contained in:
Arthur Schiwon 2015-04-09 14:49:11 +02:00
parent 3abc72dad8
commit ca9426308d
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ OCA = OCA || {};
if(result.status === 'success') {
var usersFound = parseInt(result.changes.ldap_test_loginname, 10);
if(usersFound < 1) {
var filter = result.changes.ldap_test_effective_filter;
var filter = $('<p>').text(result.changes.ldap_test_effective_filter).html();
message = t('user_ldap', 'User not found. Please check your login attributes and username. Effective filter (to copy-and-paste for command line validation): <br/>' + filter);
console.warn(filter);
isHtml = true;