diff options
author | Sadie Powell <sadie@witchery.services> | 2025-05-09 12:36:42 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-05-09 12:36:42 +0100 |
commit | b76b407b33973bf1ac00a842b5b325fb8e378170 (patch) | |
tree | 7c909c4d68a6adb452f33999a4c16a014cc1c799 /modules/webcpanel/template_fileserver.cpp | |
parent | 8b089ab1a7c91f8de5a7eabf1ad493cbef96282f (diff) |
Move HTTP types to the HTTP namespace.
Diffstat (limited to 'modules/webcpanel/template_fileserver.cpp')
-rw-r--r-- | modules/webcpanel/template_fileserver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/webcpanel/template_fileserver.cpp b/modules/webcpanel/template_fileserver.cpp index ec34d4af6..0ce547a83 100644 --- a/modules/webcpanel/template_fileserver.cpp +++ b/modules/webcpanel/template_fileserver.cpp @@ -86,14 +86,14 @@ TemplateFileServer::TemplateFileServer(const Anope::string &f_n) : file_name(f_n { } -void TemplateFileServer::Serve(HTTPProvider *server, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply, Replacements &r) +void TemplateFileServer::Serve(HTTP::Provider *server, const Anope::string &page_name, HTTP::Client *client, HTTP::Message &message, HTTP::Reply &reply, Replacements &r) { int fd = open((template_base + "/" + this->file_name).c_str(), O_RDONLY); if (fd < 0) { Log(LOG_NORMAL, "httpd") << "Error serving file " << page_name << " (" << (template_base + "/" + this->file_name) << "): " << strerror(errno); - client->SendError(HTTP_PAGE_NOT_FOUND, "Page not found"); + client->SendError(HTTP::PAGE_NOT_FOUND, "Page not found"); return; } @@ -237,7 +237,7 @@ void TemplateFileServer::Serve(HTTPProvider *server, const Anope::string &page_n Anope::string replacement = FindReplacement(r, content.substr(0, f - 1)); // htmlescape all text replaced onto the page - replacement = HTTPUtils::Escape(replacement); + replacement = HTTP::Escape(replacement); finished += replacement; } |