From 42f56126cb3cf2c76988d3d10ef0f736b6890e79 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 6 Oct 2008 07:37:37 +0000 Subject: [PATCH] (bug 14229) Trim attribute name in #tag --- includes/parser/CoreParserFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 796df98eb8..c60b74cb7a 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -378,7 +378,7 @@ class CoreParserFunctions { foreach ( $args as $arg ) { $bits = $arg->splitArg(); if ( strval( $bits['index'] ) === '' ) { - $name = $frame->expand( $bits['name'], PPFrame::STRIP_COMMENTS ); + $name = trim( $frame->expand( $bits['name'], PPFrame::STRIP_COMMENTS ) ); $value = trim( $frame->expand( $bits['value'] ) ); if ( preg_match( '/^(?:["\'](.+)["\']|""|\'\')$/s', $value, $m ) ) { $value = isset( $m[1] ) ? $m[1] : ''; -- 2.20.1