From 75a2ed9ffaa4c1a71f4fb29b85008b1d9d0499da Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Fri, 1 Dec 2006 03:16:22 +0000 Subject: [PATCH] disallow embedded line breaks in ISBNs; allowing them breaks things in a most interesting manner --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1