Trim makeImage option list, for bug #8582
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sat, 17 Mar 2007 19:18:21 +0000 (19:18 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sat, 17 Mar 2007 19:18:21 +0000 (19:18 +0000)
includes/Parser.php

index 6ac0467..5834b1d 100644 (file)
@@ -4389,7 +4389,7 @@ class Parser
                #  * bottom
                #  * text-bottom
 
-               $part = explode( '|', $options);
+               $part = array_map( 'trim', explode( '|', $options) );
 
                $mwAlign = array();
                $alignments = array( 'left', 'right', 'center', 'none', 'baseline', 'sub', 'super', 'top', 'text-top', 'middle', 'bottom', 'text-bottom' );