summaryrefslogtreecommitdiffhomepage
path: root/plugins/static-files
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-12 22:20:33 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-12 22:20:33 +0200
commit4732dc63657f4c6fc342f7674f7dc7c666b293dc (patch)
treeda91a5dbbd62982284435d252dd89ac963952ee9 /plugins/static-files
parent3f778eecc705990598f1033e6245522f42e2fcb5 (diff)
webbox (WIP)
Diffstat (limited to 'plugins/static-files')
-rw-r--r--plugins/static-files/static-files.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/static-files/static-files.cpp b/plugins/static-files/static-files.cpp
index ad85f22..b137cb8 100644
--- a/plugins/static-files/static-files.cpp
+++ b/plugins/static-files/static-files.cpp
@@ -72,7 +72,7 @@ std::string static_files_plugin::generate_page(
if (method != "GET" && method != "HEAD")
return HttpStatus("400", "Unknown HTTP method", SetResponseHeader);
- // Request path must be absolute and not contain "..".
+ // Request path must not contain "..".
std::string rel_target{GetRequestParam("rel_target")};
if (rel_target.find("..") != std::string::npos) {
std::string target{GetRequestParam("target")};