commit - dfa6d77b7060548a2331c334ff47ee810bbf7a38
commit + eecad7a3ca59d176f7d2c5294c90bb34ad2ce928
blob - a677ab5a25704fccddd43fe59264f42bd503d563
blob + 657ad4ed5f7a45d0870c0e660c5dfed3cf149a26
--- server.c
+++ server.c
{
switch (check_path(c, c->iri.path, &c->pfd)) {
case FILE_EXECUTABLE:
- if (c->host->cgi != NULL && !fnmatch(c->host->cgi, c->iri.path, 0)) {
+ if (c->host->cgi != NULL && matches(c->host->cgi, c->iri.path)) {
start_cgi(c->iri.path, "", c);
return;
}
return;
case FILE_MISSING:
- if (c->host->cgi != NULL && !fnmatch(c->host->cgi, c->iri.path, 0)) {
+ if (c->host->cgi != NULL && matches(c->host->cgi, c->iri.path)) {
check_for_cgi(c);
return;
}
}
for (h = hosts; h->domain != NULL; ++h) {
- if (!fnmatch(h->domain, c->domain, 0))
+ if (matches(h->domain, c->domain))
break;
}
switch (check_path(c, c->iri.path, &c->pfd)) {
case FILE_EXECUTABLE:
- if (c->host->cgi != NULL && !fnmatch(c->host->cgi, c->iri.path, 0)) {
+ if (c->host->cgi != NULL && matches(c->host->cgi, c->iri.path)) {
start_cgi(c->iri.path, "", c);
break;
}