From 9266070e51422a71566ee5c04db42feec996c485 Mon Sep 17 00:00:00 2001 From: lns Date: Thu, 21 Oct 2021 14:52:26 +0200 Subject: 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 --- src/content/markdown/Markdown.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/content/markdown/Markdown.hpp') diff --git a/src/content/markdown/Markdown.hpp b/src/content/markdown/Markdown.hpp index 9c4d3c4..fa14b3a 100644 --- a/src/content/markdown/Markdown.hpp +++ b/src/content/markdown/Markdown.hpp @@ -15,9 +15,9 @@ public: void Shutdown(); bool Render(RequestResponse & rr, RenderData & rd, std::string & out); - std::string const & GetUriBasePath() const; + std::string & GetUriBasePath(); std::string const & GetMainTemplate() const; - Redirections const & GetRedirections() const; + Redirections & GetRedirections(); bool HasMarkdownFile(std::string filePath) const; bool HasMarkdownURI(std::string uriPath) const; -- cgit v1.2.3