From 16dc83e8e4a231e58b1d27eb671e73ddfe883852 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 8 Feb 2012 23:25:58 +0000 Subject: [PATCH] r110979: removed implode() call and format the message as plaintext, as any HTML will be escaped anyway for such exceptions. --- includes/upload/UploadStash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/upload/UploadStash.php b/includes/upload/UploadStash.php index 14560ddfd6..ad153d2fc3 100644 --- a/includes/upload/UploadStash.php +++ b/includes/upload/UploadStash.php @@ -215,7 +215,7 @@ class UploadStash { } } // at this point, $error should contain the single "most important" error, plus any parameters. - throw new UploadStashFileException( "Error storing file in '$path': " . implode( '; ', wfMessage( $error ) ) ); + throw new UploadStashFileException( "Error storing file in '$path': " . wfMessage( $error )->text() ); } $stashPath = $storeStatus->value; -- 2.20.1