From: ThomasV Date: Fri, 4 Sep 2009 13:08:44 +0000 (+0000) Subject: follow-up to r55768 X-Git-Tag: 1.31.0-rc.0~39931 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=167f6795eb23491bcc3fac2985354cdf6493e3b3;p=lhc%2Fweb%2Fwiklou.git follow-up to r55768 --- diff --git a/includes/DjVuImage.php b/includes/DjVuImage.php index c49971e1c4..942d194d0b 100644 --- a/includes/DjVuImage.php +++ b/includes/DjVuImage.php @@ -251,7 +251,9 @@ class DjVuImage { wfProfileOut( 'djvutxt' ); if( $retval == 0) { # Get rid of invalid UTF-8, strip control characters + wfSuppressWarnings(); $txt = iconv( "UTF-8","UTF-8//IGNORE", $txt ); + wfRestoreWarnings(); $txt = preg_replace( "/[\013\035\037]/", "", $txt ); $txt = htmlspecialchars($txt); $txt = preg_replace( "/\((page\s[\d-]*\s[\d-]*\s[\d-]*\s[\d-]*\s*\"([^<]*?)\"\s*|)\)/s", "", $txt );