Skip to content
Snippets Groups Projects
Commit 2d50329e authored by deuce's avatar deuce
Browse files

More webserver fixes... these ones WORK!

parent 0d798242
No related branches found
No related tags found
No related merge requests found
......@@ -2007,7 +2007,7 @@ static BOOL check_extra_path(http_session_t * session)
/* Check if this contains an index */
end=strchr(rpath,0);
if(isdir(vpath)) {
if(isdir(rpath) && !isdir(session->req.physical_path)) {
for(i=0; startup->index_file_name!=NULL && startup->index_file_name[i]!=NULL ;i++) {
*end=0;
strcat(rpath,startup->index_file_name[i]);
......@@ -2022,6 +2022,9 @@ static BOOL check_extra_path(http_session_t * session)
}
}
if(vp_slash==vpath)
return(FALSE);
/* Check if this is a script */
*rp_slash=0;
if(vp_slash!=vpath) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment