| Index: branches/REL1_4/phase3/includes/CategoryPage.php |
| — | — | @@ -365,9 +365,9 @@ |
| 366 | 366 | $text = "\n".$row->cur_text; |
| 367 | 367 | |
| 368 | 368 | $rules = array( |
| 369 | | - "/\[\[(".implode('|',$prefixes)."):[^]]*\]\]/i" => "", # interwiki links, cat links |
| 370 | | - "/\[\[([^]]+)\|([^]\|]*)\]\]/" => "\$2", # piped links |
| 371 | | - "/\[\[([^]]+)\]\]/" => "\$1", # links |
| | 369 | + "/\[\[([^\[\]]+)\|([^[\]\|]*)\]\]/" => "\$2", # piped links |
| | 370 | + "/\[\[([^\[\]]+)\]\]/" => "\$1", # links |
| | 371 | + "/\[\[(".implode('|',$prefixes)."):[^\]]*\]\]/i" => "", # interwiki links, cat links |
| 372 | 372 | "/<br([^>]{1,60})>/i" => "\n", # break |
| 373 | 373 | "/{{([^}]+)}}/s" => "", # template |
| 374 | 374 | "/<table[^<]{0,60}>(.*)<\/table>/si" => "", # table |
| — | — | @@ -377,7 +377,7 @@ |
| 378 | 378 | "/\n=\s*(.*)\s*=\n/" => "\n* \$1\n", # h1 |
| 379 | 379 | "/'''(.*)'''/" => "\$1", # bold |
| 380 | 380 | "/''(.*)''/" => "\$1", # italic |
| 381 | | - "/<([^>]{1,600})>/s" => "", # any html tags |
| | 381 | + "/<([^>]{1,1500})>/s" => "", # any html tags |
| 382 | 382 | "/__\w{1,60}__/i" => "", # __notoc__ etc |
| 383 | 383 | "/__\w{1,60}__/i" => "", # __notoc__ etc |
| 384 | 384 | "/\n+/" => "\n" # many newlines |