X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fparser%2FLinkHolderArray.php;h=64164490c29ddff5849b2bf3ed42afa36cb182ae;hb=53338c123c4edd5412c4d721cf2066f2c3b805f3;hp=f4856be96dca325fa99ae8504fa7341649a7dd05;hpb=5354c219cd436583c0a0e401718018e8569f84e2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/LinkHolderArray.php b/includes/parser/LinkHolderArray.php index f4856be96d..64164490c2 100644 --- a/includes/parser/LinkHolderArray.php +++ b/includes/parser/LinkHolderArray.php @@ -275,6 +275,7 @@ class LinkHolderArray { /** * Replace internal links + * @suppress SecurityCheck-XSS Gets confused with $entry['pdbk'] * @param string &$text */ protected function replaceInternal( &$text ) { @@ -418,6 +419,7 @@ class LinkHolderArray { /** * Replace interwiki links * @param string &$text + * @suppress SecurityCheck-XSS Gets confused with $this->interwikis['pdbk'] */ protected function replaceInterwiki( &$text ) { if ( empty( $this->interwikis ) ) { @@ -630,8 +632,7 @@ class LinkHolderArray { * @private */ public function replaceTextCallback( $matches ) { - $type = $matches[1]; - $key = $matches[2]; + list( , $type, $key ) = $matches; if ( $type == 'LINK' ) { list( $ns, $index ) = explode( ':', $key, 2 ); if ( isset( $this->internals[$ns][$index]['text'] ) ) {