mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fix cssDecode transformation
This commit is contained in:
parent
743fb651da
commit
3331744175
@ -36,7 +36,11 @@ namespace transformations {
|
||||
|
||||
std::string CssDecode::evaluate(std::string value,
|
||||
Assay *assay) {
|
||||
char *tmp = strdup(value.c_str());
|
||||
|
||||
char *tmp = (char *) malloc(sizeof(char) * value.size() + 1);
|
||||
memcpy(tmp, value.c_str(), value.size() + 1);
|
||||
tmp[value.size()] = '\0';
|
||||
|
||||
css_decode_inplace((unsigned char *)tmp, value.size());
|
||||
std::string ret(tmp, 0, value.size());
|
||||
free(tmp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user