Page MenuHomePhabricator
Authored By
bzimport
Nov 21 2014, 10:19 PM
Size
584 B
Referenced Files
None
Subscribers
None
Index: includes/Title.php
===================================================================
--- includes/Title.php (revision 38715)
+++ includes/Title.php (working copy)
@@ -299,7 +299,7 @@
if( $redir->matchStart( trim($text) ) ) {
// Extract the first link and see if it's usable
$m = array();
- if( preg_match( '!\[{2}(.*?)(?:\|.*?)?\]{2}!', $text, $m ) ) {
+ if( preg_match( '!^[^\n]*\[\[(.*?)(?:\|.*?)?\]\]!', $text, $m ) ) {
// Strip preceding colon used to "escape" categories, etc.
// and URL-decode links
if( strpos( $m[1], '%' ) !== false ) {

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4700
Default Alt Text
diff (584 B)

Event Timeline