paht info html
This commit is contained in:
@ -63,7 +63,7 @@ URI::URI(string webroot, string reqpath) {
|
|||||||
info = "";
|
info = "";
|
||||||
relpath = reqpath;
|
relpath = reqpath;
|
||||||
|
|
||||||
while (!fileExists(webroot + relpath) && !fileExists(webroot + relpath + ".php")) {
|
while (!fileExists(webroot + relpath) && !fileExists(webroot + relpath + ".php") && !fileExists(webroot + relpath + ".html")) {
|
||||||
long slash = relpath.find_last_of('/');
|
long slash = relpath.find_last_of('/');
|
||||||
if (slash == string::npos) {
|
if (slash == string::npos) {
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user