From 89c0d2be818d05858c07105bac8ff8655e4745c1 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner <lorenz.stechauner@gmail.com> Date: Mon, 5 Nov 2018 23:57:39 +0100 Subject: [PATCH] Keine Ahnung 3 --- src/URI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/URI.cpp b/src/URI.cpp index 7e15d7f..ec3b6b0 100644 --- a/src/URI.cpp +++ b/src/URI.cpp @@ -121,9 +121,9 @@ URI::URI(string webroot, string reqpath) { newpath = relpath + info; filepath = ""; } else if (relpath != reqpath) { - /*if (!info.empty()) { + if (!info.empty() && relpath[relpath.length() - 1] == '/') { info.erase(0,1); - }*/ + } newpath = relpath + info; } else { newpath = "";