X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Fhttp%2Fipagehandler.h;h=be707e5791ce47bbcc6cc678edc31de7cdf70a87;hp=313aa564b2f386b7245024a6843c4baf448f8ad1;hb=b9c3763a932cebaa015a27fe111017f6f34dfbaa;hpb=37a8d59548287dcad78ef00e7b18058721eb9935 diff --git a/include/http/ipagehandler.h b/include/http/ipagehandler.h index 313aa56..be707e5 100644 --- a/include/http/ipagehandler.h +++ b/include/http/ipagehandler.h @@ -22,8 +22,6 @@ public: const bool Handle(shttpd_arg *arg); private: - void HandlePost(shttpd_arg *arg); - void HadleGet(shttpd_arg *arg); virtual const bool WillHandleURI(const std::string &uri)=0; virtual const std::string GeneratePage(const std::string &method, const std::map &queryvars)=0; @@ -31,6 +29,9 @@ protected: // converts from basename[#] query args into a vector where the vector pos is the index pos # void CreateArgArray(const std::map &vars, const std::string &basename, std::vector &args); + // replaces html control characters with elements (i.e. < becomes <) + const std::string SanitizeOutput(const std::string &input); + std::string m_template; };