]> source.dussan.org Git - nextcloud-server.git/commitdiff
escape filter for output
authorArthur Schiwon <blizzz@owncloud.com>
Thu, 9 Apr 2015 12:49:11 +0000 (14:49 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Thu, 9 Apr 2015 12:49:11 +0000 (14:49 +0200)
apps/user_ldap/js/wizard/wizardTabLoginFilter.js

index 3acb13ace21215ca0608f3653780e4733532f694..5e9f0728b0e8f8c5686d44db88fa52c2a4901fe8 100644 (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;