MediaWiki r8507 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r8506‎ | r8507 (on ViewVC)‎ | r8508 >
Date:17:25, 21 April 2005
Author:gabrielwicke
Status:old
Tags:
Comment:
Improved handling of links in image captions
Modified paths:

Diff [purge]

Index: branches/REL1_4/phase3/includes/CategoryPage.php
@@ -365,9 +365,9 @@
366366 $text = "\n".$row->cur_text;
367367
368368 $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
372372 "/<br([^>]{1,60})>/i" => "\n", # break
373373 "/{{([^}]+)}}/s" => "", # template
374374 "/<table[^<]{0,60}>(.*)<\/table>/si" => "", # table
@@ -377,7 +377,7 @@
378378 "/\n=\s*(.*)\s*=\n/" => "\n* \$1\n", # h1
379379 "/'''(.*)'''/" => "\$1", # bold
380380 "/''(.*)''/" => "\$1", # italic
381 - "/<([^>]{1,600})>/s" => "", # any html tags
 381+ "/<([^>]{1,1500})>/s" => "", # any html tags
382382 "/__\w{1,60}__/i" => "", # __notoc__ etc
383383 "/__\w{1,60}__/i" => "", # __notoc__ etc
384384 "/\n+/" => "\n" # many newlines

Status & tagging log

  • 15:03, 12 September 2011 Meno25 (Talk | contribs) changed the status of r8507 [removed: ok added: old]
  • 14:06, 1 July 2009 ^demon (Talk | contribs) changed the status of r8507 [removed: new added: ok]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox