From 2000f4c048efbe64443ca8abee709ebd3ea26237 Mon Sep 17 00:00:00 2001 From: Ervin Hegedus Date: Sun, 27 Apr 2025 20:25:20 +0200 Subject: [PATCH] Update comment Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com> --- src/request_body_processor/xml.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/request_body_processor/xml.cc b/src/request_body_processor/xml.cc index b935d612..8114b5b7 100644 --- a/src/request_body_processor/xml.cc +++ b/src/request_body_processor/xml.cc @@ -86,7 +86,7 @@ class MSCSAXHandler { } } 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; xml_data->currpath.erase(xml_data->currpath.length() - (name.length()+offset)); }