Bugfix dir mode
This commit is contained in:
@ -75,7 +75,7 @@ int uri_init(http_uri *uri, const char *webroot, const char *uri_str, int dir_mo
|
|||||||
} else {
|
} else {
|
||||||
strcpy(uri->pathinfo, "");
|
strcpy(uri->pathinfo, "");
|
||||||
}
|
}
|
||||||
while (1) {
|
while (dir_mode == URI_DIR_MODE_INFO) {
|
||||||
sprintf(buf0, "%s%s", uri->webroot, uri->path);
|
sprintf(buf0, "%s%s", uri->webroot, uri->path);
|
||||||
sprintf(buf1, "%s.php", buf0);
|
sprintf(buf1, "%s.php", buf0);
|
||||||
sprintf(buf2, "%s.html", buf0);
|
sprintf(buf2, "%s.html", buf0);
|
||||||
|
Reference in New Issue
Block a user