mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Update comment
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
This commit is contained in:
parent
159f6120aa
commit
2000f4c048
@ -86,7 +86,7 @@ class MSCSAXHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (xml_data->currpath.length() > 0) {
|
if (xml_data->currpath.length() > 0) {
|
||||||
// set an offset to store this is the first item or not -> remove the '.' or not
|
// set an offset to store whether this is the first item, in order to know whether to remove the '.'
|
||||||
int offset = (xml_data->nodes.size() > 1) ? 1 : 0;
|
int offset = (xml_data->nodes.size() > 1) ? 1 : 0;
|
||||||
xml_data->currpath.erase(xml_data->currpath.length() - (name.length()+offset));
|
xml_data->currpath.erase(xml_data->currpath.length() - (name.length()+offset));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user