From: Ilmari Karonen Date: Fri, 1 Dec 2006 03:16:22 +0000 (+0000) Subject: disallow embedded line breaks in ISBNs; allowing them breaks things in a most interes... X-Git-Tag: 1.31.0-rc.0~55022 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=75a2ed9ffaa4c1a71f4fb29b85008b1d9d0499da;p=lhc%2Fweb%2Fwiklou.git disallow embedded line breaks in ISBNs; allowing them breaks things in a most interesting manner --- diff --git a/includes/Parser.php b/includes/Parser.php index 17005ffe5c..ef298a3cec 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -987,7 +987,7 @@ class Parser | # Skip link text <.*?> | # Skip stuff inside HTML elements (?:RFC|PMID)\s+([0-9]+) | # RFC or PMID, capture number as m[1] - ISBN\s+(\b[0-9Xx\s\-]+) # ISBN, capture number as m[2] + ISBN\s+(\b[0-9Xx\ \-]+) # ISBN, capture number as m[2] )!x', array( &$this, 'magicLinkCallback' ), $text ); wfProfileOut( __METHOD__ ); return $text;