mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Fix for xml class being unable to parse media: and opensearch: xml tags.
This commit is contained in:
@@ -578,8 +578,16 @@ class xmlClass
|
|||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
$xmlData = str_replace('content:encoded', 'content_encoded', $xmlData);
|
$extendedTypes = array(
|
||||||
|
'content:encoded' => 'content_encoded',
|
||||||
|
'<media:' => '<media_',
|
||||||
|
'</media:' => '</media_',
|
||||||
|
'<opensearch:' => '<opensearch_',
|
||||||
|
'</opensearch:' => '</opensearch_'
|
||||||
|
);
|
||||||
|
|
||||||
|
$xmlData = str_replace(array_keys($extendedTypes), array_values($extendedTypes), $xmlData);
|
||||||
|
|
||||||
if(!$xml = simplexml_load_string($xmlData))
|
if(!$xml = simplexml_load_string($xmlData))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user