Keine Ahnung 2

This commit is contained in:
2018-11-05 23:55:46 +01:00
parent a281bd41f3
commit df908ce942

View File

@ -118,12 +118,12 @@ URI::URI(string webroot, string reqpath) {
if (relpath[relpath.length() - 1] == '/') { if (relpath[relpath.length() - 1] == '/') {
relpath.erase(relpath.length() - 1); relpath.erase(relpath.length() - 1);
} }
newpath = relpath + '/' + info; newpath = relpath + info;
filepath = ""; filepath = "";
} else if (relpath != reqpath) { } else if (relpath != reqpath) {
if (!info.empty()) { /*if (!info.empty()) {
info.erase(0,1); info.erase(0,1);
} }*/
newpath = relpath + info; newpath = relpath + info;
} else { } else {
newpath = ""; newpath = "";