mirror of
https://github.com/anope/anope.git
synced 2026-07-07 12:43:13 +02:00
webcpanel: escape values in template_fileserver
Remove other escapes to prevent double escape. Not all replaced values were escaped, such as replies from commands.
This commit is contained in:
@@ -238,7 +238,11 @@ void TemplateFileServer::Serve(HTTPProvider *server, const Anope::string &page_n
|
||||
|
||||
if (ifok && forok)
|
||||
{
|
||||
const Anope::string &replacement = FindReplacement(r, content.substr(0, f - 1));
|
||||
Anope::string replacement = FindReplacement(r, content.substr(0, f - 1));
|
||||
|
||||
// htmlescape all text replaced onto the page
|
||||
replacement = HTTPUtils::Escape(replacement);
|
||||
|
||||
finished += replacement;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user