From 7a836958be6a698a61eef4d166d9fecd7a909e8d Mon Sep 17 00:00:00 2001 From: Reedy Date: Mon, 18 Sep 2017 01:00:07 +0100 Subject: [PATCH 1/1] Run strval() over the File description Bug: T176090 Change-Id: I8488666c221a1bd4e4e063291e74819a07a4a20f --- includes/export/XmlDumpWriter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ) . -- 2.20.1