Properly escape backslash in regex

This commit is contained in:
Laslo Hunhold 2017-07-21 18:37:55 +02:00
parent 10d2ffe53a
commit 8ec042a1ba

View file

@ -20,7 +20,7 @@ static struct {
regex_t re; regex_t re;
} vhost[] = { } vhost[] = {
/* canonical host host regex directory */ /* canonical host host regex directory */
{ "example.org", "^(www\.)?example.org$", "/example.org" }, { "example.org", "^(www\\.)?example.org$", "/example.org" },
}; };
/* mime-types */ /* mime-types */