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

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