dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0145-VALIDATORS-Escape-special-regex-chars.patch

bb7cd1
From fc6bffc8523e6decf4656182f8caf72236e45c3d Mon Sep 17 00:00:00 2001
bb7cd1
From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@redhat.com>
bb7cd1
Date: Tue, 4 Apr 2017 20:06:40 +0200
bb7cd1
Subject: [PATCH 145/152] VALIDATORS: Escape special regex chars
bb7cd1
MIME-Version: 1.0
bb7cd1
Content-Type: text/plain; charset=UTF-8
bb7cd1
Content-Transfer-Encoding: 8bit
bb7cd1
bb7cd1
The rule allowed_domain_options did not work because
bb7cd1
of bad regex.
bb7cd1
bb7cd1
Resolves:
bb7cd1
https://pagure.io/SSSD/sssd/issue/3356
bb7cd1
bb7cd1
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
bb7cd1
---
bb7cd1
 src/config/cfg_rules.ini | 2 +-
bb7cd1
 1 file changed, 1 insertion(+), 1 deletion(-)
bb7cd1
bb7cd1
diff --git a/src/config/cfg_rules.ini b/src/config/cfg_rules.ini
bb7cd1
index a30fe57e262716abeb2d2af9c3add326122ee4ca..628f2e0e0a040bad5128d00d9348aa91170ed704 100644
bb7cd1
--- a/src/config/cfg_rules.ini
bb7cd1
+++ b/src/config/cfg_rules.ini
bb7cd1
@@ -295,7 +295,7 @@ option = responder_idle_timeout
bb7cd1
 
bb7cd1
 [rule/allowed_domain_options]
bb7cd1
 validator = ini_allowed_options
bb7cd1
-section_re = ^(domain|application)/.*$
bb7cd1
+section_re = ^\(domain\|application\)/.*$
bb7cd1
 
bb7cd1
 option = debug
bb7cd1
 option = debug_level
bb7cd1
-- 
bb7cd1
2.9.4
bb7cd1