r80416 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80415‎ | r80416 | r80417 >
Date:16:41, 16 January 2011
Author:platonides
Status:ok
Tags:
Comment:
Pasting lines typo in r80025
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -4327,7 +4327,7 @@
43284328
43294329 function setTransparentTagHook( $tag, $callback ) {
43304330 $tag = strtolower( $tag );
4331 - if ( preg_match( '/[<>\r\n]/', $tag, $m ) ) throw new MWException( "Invalid character {$m[0]} in setHook('$tag', ...) call" );
 4331+ if ( preg_match( '/[<>\r\n]/', $tag, $m ) ) throw new MWException( "Invalid character {$m[0]} in setTransparentHook('$tag', ...) call" );
43324332 $oldVal = isset( $this->mTransparentTagHooks[$tag] ) ? $this->mTransparentTagHooks[$tag] : null;
43334333 $this->mTransparentTagHooks[$tag] = $callback;
43344334
@@ -4432,7 +4432,7 @@
44334433 */
44344434 function setFunctionTagHook( $tag, $callback, $flags ) {
44354435 $tag = strtolower( $tag );
4436 - if ( preg_match( '/[<>\r\n]/', $tag, $m ) ) throw new MWException( "Invalid character {$m[0]} in setHook('$tag', ...) call" );
 4436+ if ( preg_match( '/[<>\r\n]/', $tag, $m ) ) throw new MWException( "Invalid character {$m[0]} in setFunctionTagHook('$tag', ...) call" );
44374437 $old = isset( $this->mFunctionTagHooks[$tag] ) ?
44384438 $this->mFunctionTagHooks[$tag] : null;
44394439 $this->mFunctionTagHooks[$tag] = array( $callback, $flags );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r80025Forbid '<', '>', ' ', '\n', '\r' in parser hook names....platonides18:38, 11 January 2011

Status & tagging log