Skip to content
Snippets Groups Projects
Commit 1eb9cb92 authored by Mike Ryan's avatar Mike Ryan Committed by Mike Ryan
Browse files

Issue #2742221 by mikeryan: Use forward slashes for parent path in XML parser

parent 6a59e99f
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,11 @@ class Xml extends DataParserPluginBase implements ContainerFactoryPluginInterfac
}
foreach ($this->fieldSelectors() as $field_name => $xpath) {
if (substr($xpath, 0, 3) === '..\\') {
$prefix = substr($xpath, 0, 3);
if ($prefix === '../') {
$this->parentElementsOfInterest[] = str_replace('../', '', $xpath);
}
elseif ($prefix === '..\\') {
$this->parentElementsOfInterest[] = str_replace('..\\', '', $xpath);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment