Properly escape backslash in regex
This commit is contained in:
parent
10d2ffe53a
commit
8ec042a1ba
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue