diff options
author | Simon Rettberg | 2016-11-18 16:51:52 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-11-18 16:51:52 +0100 |
commit | bcfc1f32d35f7ec61c9b18d27d84f0dca60137c8 (patch) | |
tree | 59bfeef4084f7f254a3698d218f215862cd772d4 /modules-available/sysconfig/templates | |
parent | [statistics] Add support for parsing GPT output from busybox fdisk (diff) | |
download | slx-admin-bcfc1f32d35f7ec61c9b18d27d84f0dca60137c8.tar.gz slx-admin-bcfc1f32d35f7ec61c9b18d27d84f0dca60137c8.tar.xz slx-admin-bcfc1f32d35f7ec61c9b18d27d84f0dca60137c8.zip |
[sysconfig] Improve ad handling once again
Diffstat (limited to 'modules-available/sysconfig/templates')
-rw-r--r-- | modules-available/sysconfig/templates/ad-selfsearch.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/sysconfig/templates/ad-selfsearch.html b/modules-available/sysconfig/templates/ad-selfsearch.html index 5fadd92e..b60cc3af 100644 --- a/modules-available/sysconfig/templates/ad-selfsearch.html +++ b/modules-available/sysconfig/templates/ad-selfsearch.html @@ -65,7 +65,7 @@ var search = $('#searchbase').val(); if ($('#searchbase').val().length < 2) { var givenDn = $('#givendn').val(); - if (new RegExp('^\\w+[\\/\\\\]\\w+$').test(givenDn)) { + if (new RegExp('^([^\\[\\]\\:;\\|\\=\\+\\?\\<\\>\\*"/\\\\,]+)[/\\\\]([^\\[\\]\\:;\\|\\=\\+\\?\\<\\>\\*"/\\\\,]+)$').test(givenDn)) { domain = givenDn.replace(/[\/\\]\S+$/i, ''); var idx = fulldn.search(new RegExp('\\w+=' + domain + ',', "i")); if (idx !== -1) { |