X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fhttp%2Fipagehandler.h;h=6cd305275b48dbb6009adcd8f48a597a3cd2c14c;hb=f60495a029c54358f82956482fe203fe2b7b5b23;hp=313aa564b2f386b7245024a6843c4baf448f8ad1;hpb=f208e33c29132aacaec448e74341edea1b925a2a;p=fms.git diff --git a/include/http/ipagehandler.h b/include/http/ipagehandler.h index 313aa56..6cd3052 100644 --- a/include/http/ipagehandler.h +++ b/include/http/ipagehandler.h @@ -22,15 +22,18 @@ 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; protected: + // splits apart data into name,data pairs in args map + void HandleMultiPartData(const std::string &contenttypeheader, char *data, const long datalen, std::map &args); // 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; };