From 31fa562e85c33b426b773811623f962f267b7e62 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 17 Jun 2009 07:48:50 +0000 Subject: [PATCH] fix regexp --- includes/DjVuImage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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. '' ; -- 2.20.1