2
0
Fork 0

Fix previous commit and static forbidden handling

This commit is contained in:
Stefan Bühler 2009-03-17 14:49:27 +01:00
parent be8e8bb3ea
commit 2995cb5ffa
2 changed files with 2 additions and 1 deletions

View File

@ -235,6 +235,7 @@ static handler_t core_handle_static(vrequest *vr, gpointer param, gpointer *cont
if (CORE_OPTION(CORE_OPTION_DEBUG_REQUEST_HANDLING).boolean) {
VR_DEBUG(vr, "not a regular file: '%s'", vr->physical.path->str);
}
if (!vrequest_handle_direct(vr)) return HANDLER_ERROR;
vr->response.http_status = 403;
} else if ((fd = open(vr->physical.path->str, O_RDONLY)) == -1) {
switch (errno) {

View File

@ -278,7 +278,7 @@ static gboolean vrequest_do_handle_actions(vrequest *vr) {
if (CORE_OPTION(CORE_OPTION_DEBUG_REQUEST_HANDLING).boolean) {
VR_DEBUG(vr, "%s", "actions didn't handle request");
}
return FALSE;
return TRUE;
}
/* otherwise state already changed */
break;