From: ThomasV Date: Wed, 17 Jun 2009 07:48:50 +0000 (+0000) Subject: fix regexp X-Git-Tag: 1.31.0-rc.0~41333 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=31fa562e85c33b426b773811623f962f267b7e62;p=lhc%2Fweb%2Fwiklou.git fix regexp --- diff --git a/includes/DjVuImage.php b/includes/DjVuImage.php index fbb2586529..041ef73c8b 100644 --- a/includes/DjVuImage.php +++ b/includes/DjVuImage.php @@ -251,8 +251,7 @@ class DjVuImage { wfProfileOut( 'djvutxt' ); if( $retval == 0) { $txt = htmlspecialchars($txt); - $txt = preg_replace( "/\(page\s\d*\s\d*\s\d*\s\d*\s*\"(.*?)\"\s*\)/s", "", $txt ); - $txt = preg_replace( "/\(\)/", "", $txt ); + $txt = preg_replace( "/\((page\s\d*\s\d*\s\d*\s\d*\s*\"([^<]*?)\"\s*|)\)/s", "", $txt ); $txt = "\n\n\n" . $txt . "\n\n"; $xml = preg_replace( "//", "", $xml ); $xml = $xml . $txt. '' ;