Commit 1eb9cb92 authored by mikeryan's avatar mikeryan Committed by mikeryan
Browse files

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

parent 6a59e99f
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment