Fix importer error when processing attachments

This commit is contained in:
Kijin Sung 2025-07-21 22:19:43 +09:00
parent f00d2800b5
commit c213652ccd

View file

@ -1090,10 +1090,11 @@ class importerAdminController extends importer
} }
if($started) $buff .= $str; if($started) $buff .= $str;
// If it ends with </attach>, handle attachements // If it ends with </attach>, handle attachements
if(trim($str) == '</attach>') if(trim($str) == '</attach>')
{ {
$xmlDoc = Rhymix\Framework\Parsers\XEXMLParser::loadXMLString($buff.$str); $xmlDoc = Rhymix\Framework\Parsers\XEXMLParser::loadXMLString($buff);
$file_obj->source_filename = base64_decode($xmlDoc->attach->filename->body); $file_obj->source_filename = base64_decode($xmlDoc->attach->filename->body);
$file_obj->download_count = base64_decode($xmlDoc->attach->download_count->body); $file_obj->download_count = base64_decode($xmlDoc->attach->download_count->body);