Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -212,18 +212,14 @@ |
213 | 213 | $text = $rev->getText(); |
214 | 214 | |
215 | 215 | //check if it is using pagelist |
216 | | - preg_match_all( "/<pagelist(.*?)\/>/is", $text, $m, PREG_PATTERN_ORDER ); |
| 216 | + preg_match_all( "/<pagelist([^<]*?)\/>/is", $text, $m, PREG_PATTERN_ORDER ); |
217 | 217 | if( $m[1] ) { |
218 | | - |
219 | | - $params = array(); |
220 | | - for( $k = 0; $k < count( $m[1] ); $k++) { |
221 | | - preg_match_all( "/([0-9a-z]*?)\=(.*?)\s/", $m[1][$k] . " ", $m2, PREG_PATTERN_ORDER ); |
222 | | - for( $i = 0; $i < count( $m2[1] ); $i++) { |
223 | | - $params[ $m2[1][$i] ] = $m2[2][$i]; |
224 | | - } |
| 218 | + $params_s = ""; |
| 219 | + for( $k = 0; $k < count( $m[1] ); $k++) { |
| 220 | + $params_s = $params_s . $m[1][$k]; |
225 | 221 | } |
| 222 | + $params = Sanitizer::decodeTagAttributes( $params_s ); |
226 | 223 | $links = null; |
227 | | - |
228 | 224 | } else { |
229 | 225 | $params = null; |
230 | 226 | $tag_pattern = "/\[\[($page_namespace:.*?)(\|(.*?)|)\]\]/i"; |