From bb7e5781a470cd100ffa8428cb8f4685dcdc6d06 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Sun, 11 Jan 2009 03:42:13 +0000 Subject: [PATCH] (bug 16965) Follow-up to r45266, also don't record self-links, such as those created by s. --- includes/parser/ParserOutput.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 35cb5c922f..4ad252a7a7 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -94,6 +94,9 @@ class ParserOutput // We don't record Special: links currently // It might actually be wise to, but we'd need to do some normalization. return; + } elseif( $dbk === '' ) { + // Don't record self links - [[#Foo]] + return; } if ( !isset( $this->mLinks[$ns] ) ) { $this->mLinks[$ns] = array(); -- 2.20.1