commit 8ec042a1bacde3a54e9ed21d39a84a712a5cabb7
Author: Laslo Hunhold <[email protected]>
AuthorDate: Fri Jul 21 18:37:55 2017 +0200
Commit: Laslo Hunhold <[email protected]>
CommitDate: Fri Jul 21 18:37:55 2017 +0200
Properly escape backslash in regex
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 */