quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit 8ec042a1bacde3a54e9ed21d39a84a712a5cabb7
parent 10d2ffe53ad5c28b3cc7134131f4a1b24a162d7d
Author: Laslo Hunhold <dev@frign.de>
Date:   Fri, 21 Jul 2017 18:37:55 +0200

Properly escape backslash in regex

Diffstat:
Mconfig.def.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 */