summaryrefslogtreecommitdiffstats
path: root/modules-available/sysconfig/templates
diff options
context:
space:
mode:
authorSimon Rettberg2016-11-18 16:51:52 +0100
committerSimon Rettberg2016-11-18 16:51:52 +0100
commitbcfc1f32d35f7ec61c9b18d27d84f0dca60137c8 (patch)
tree59bfeef4084f7f254a3698d218f215862cd772d4 /modules-available/sysconfig/templates
parent[statistics] Add support for parsing GPT output from busybox fdisk (diff)
downloadslx-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.html2
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) {