upload: Suppress warnings from iconv()

iconv() can still emit notices even when '//IGNORE'
string flag is passed.

Bug: T387690
Change-Id: I16f1e99f7c25457aa0b35cb428391c42dec7b91d
(cherry picked from commit 357f2b61e815e071147583e07b388801189462bf)
This commit is contained in:
Ammarpad 2025-03-03 09:59:22 +01:00 committed by Reedy
parent 6beb3946d5
commit 39386a5b7c

View file

@ -1393,7 +1393,9 @@ abstract class UploadBase {
}
if ( $enc !== null ) {
AtEase::suppressWarnings();
$chunk = iconv( $enc, "ASCII//IGNORE", $chunk );
AtEase::restoreWarnings();
}
$chunk = trim( $chunk );