From: Reedy Date: Mon, 18 Sep 2017 00:00:07 +0000 (+0100) Subject: Run strval() over the File description X-Git-Tag: 1.31.0-rc.0~2068^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=7a836958be6a698a61eef4d166d9fecd7a909e8d Run strval() over the File description Bug: T176090 Change-Id: I8488666c221a1bd4e4e063291e74819a07a4a20f --- diff --git a/includes/export/XmlDumpWriter.php b/includes/export/XmlDumpWriter.php index 990f16dca0..c46eb61ca3 100644 --- a/includes/export/XmlDumpWriter.php +++ b/includes/export/XmlDumpWriter.php @@ -403,7 +403,7 @@ class XmlDumpWriter { if ( $file->isDeleted( File::DELETED_COMMENT ) ) { $comment = Xml::element( 'comment', [ 'deleted' => 'deleted' ] ); } else { - $comment = Xml::elementClean( 'comment', null, $file->getDescription() ); + $comment = Xml::elementClean( 'comment', null, strval( $file->getDescription() ) ); } return " \n" . $this->writeTimestamp( $file->getTimestamp() ) .