aboutsummaryrefslogtreecommitdiff
path: root/src/ContentManager.hpp
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2021-10-21 14:52:26 +0200
committerlns <matzeton@googlemail.com>2021-10-21 14:59:00 +0200
commit9266070e51422a71566ee5c04db42feec996c485 (patch)
tree4ff57de8bfce87bde001c80c7ab9fae3080aa248 /src/ContentManager.hpp
parent384724a00be9dbb8f40d295f99b9c6bcfb48b387 (diff)
Improved URI handling and redirection/routing.
* parse and process URI query strings * remove garbage slashes from URI path / sanitize * more template examples Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/ContentManager.hpp')
-rw-r--r--src/ContentManager.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ContentManager.hpp b/src/ContentManager.hpp
index 674a5d0..1e45e53 100644
--- a/src/ContentManager.hpp
+++ b/src/ContentManager.hpp
@@ -28,6 +28,7 @@ public:
bool Render(char const * basePath, RequestResponse & rr, std::string & out);
ContentModules const & GetAllModules() const;
ContentModules const & GetAllModulesRoutes() const;
+ static void RemoveGarbageSlashes(std::string & uri_basepath);
private:
std::shared_ptr<TemplateManager> m_TemplateManager;