]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/activity.php
Ticket #2242: fix reading of inline XHTML content in Atom feeds for OStatus input.
[quix0rs-gnu-social.git] / lib / activity.php
index 6acf37a8a20e4986362cf1871e35489fa23f7a16..ae65fe36ff9135a5bed7b95529d83009f8872bec 100644 (file)
@@ -463,7 +463,7 @@ class ActivityUtils
                 $text = $contentEl->textContent;
                 return htmlspecialchars_decode($text, ENT_QUOTES);
             } else if ($type == 'xhtml') {
-                $divEl = ActivityUtils::child($contentEl, 'div');
+                $divEl = ActivityUtils::child($contentEl, 'div', 'http://www.w3.org/1999/xhtml');
                 if (empty($divEl)) {
                     return null;
                 }