parser: Improves the reading for the url in the redirect action

This commit is contained in:
Felipe Zimmerle
2017-08-15 14:46:18 -03:00
parent 8c66a1b4c2
commit 9ee412735d
4 changed files with 2945 additions and 2924 deletions

View File

@@ -22,6 +22,7 @@
#include "modsecurity/transaction.h"
#include "src/macro_expansion.h"
#include "src/utils/string.h"
namespace modsecurity {
namespace actions {
@@ -30,6 +31,7 @@ namespace disruptive {
bool Redirect::init(std::string *error) {
m_url = m_parser_payload;
m_url = utils::string::parserSanitizer(m_url);
m_status = 302;
return true;
}