paht info html

This commit is contained in:
2018-06-05 09:56:59 +02:00
parent 7a889d4722
commit 8089bf3645

View File

@ -63,7 +63,7 @@ URI::URI(string webroot, string reqpath) {
info = "";
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('/');
if (slash == string::npos) {
break;