From: Tim Starling Date: Mon, 6 Oct 2008 07:37:37 +0000 (+0000) Subject: (bug 14229) Trim attribute name in #tag X-Git-Tag: 1.31.0-rc.0~44892 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=42f56126cb3cf2c76988d3d10ef0f736b6890e79;p=lhc%2Fweb%2Fwiklou.git (bug 14229) Trim attribute name in #tag --- 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] : '';