From 8ec042a1bacde3a54e9ed21d39a84a712a5cabb7 Mon Sep 17 00:00:00 2001 From: Laslo Hunhold Date: Fri, 21 Jul 2017 18:37:55 +0200 Subject: [PATCH] Properly escape backslash in regex --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 7abac23..0a020ee 100644 --- a/config.def.h +++ b/config.def.h @@ -20,7 +20,7 @@ static struct { regex_t re; } vhost[] = { /* canonical host host regex directory */ - { "example.org", "^(www\.)?example.org$", "/example.org" }, + { "example.org", "^(www\\.)?example.org$", "/example.org" }, }; /* mime-types */