QtWepApp is a HTTP server library in C++, inspired by Java Servlets. Forked from: http://stefanfrings.de/qtwebapp/index-en.html
QtWebApp/httpserver/staticfilecontroller.cpp the code here: if (!cfg.fileName.isEmpty() && !(docroot.startsWith(":/") || !docroot.startsWith("qrc://"))) { // Convert relative path to absolute, based on the directory of the config file. if (QDir::isRelativePath(docroot)) { QFileInfo configFile(cfg.fileName); docroot = QFileInfo(configFile.absolutePath(), docroot).absoluteFilePath(); } }` The first judgment condition is wrong. Suppose my [docroot] is "../location/staticfiles", it returns false.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by moya-hsy and has received 1 comments.