Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -139,10 +139,10 @@ |
140 | 140 | foreach ( $params as $i => $param ) { |
141 | 141 | $elements = explode( '=', $param, 2 ); |
142 | 142 | $param_name = null; |
143 | | - $value = $param; |
| 143 | + $value = trim( $param ); |
144 | 144 | if ( count( $elements ) > 1 ) { |
145 | | - $param_name = $elements[0]; |
146 | | - $value = $elements[1]; |
| 145 | + $param_name = trim( $elements[0] ); |
| 146 | + $value = trim( $elements[1] ); |
147 | 147 | } |
148 | 148 | if ( $param_name == 'form' ) |
149 | 149 | $inFormName = $value; |
— | — | @@ -212,10 +212,10 @@ |
213 | 213 | foreach ( $params as $i => $param ) { |
214 | 214 | $elements = explode( '=', $param, 2 ); |
215 | 215 | $param_name = null; |
216 | | - $value = $param; |
| 216 | + $value = trim( $param ); |
217 | 217 | if ( count( $elements ) > 1 ) { |
218 | | - $param_name = $elements[0]; |
219 | | - $value = $elements[1]; |
| 218 | + $param_name = trim( $elements[0] ); |
| 219 | + $value = trim( $elements[1] ); |
220 | 220 | } |
221 | 221 | if ( $param_name == 'form' ) |
222 | 222 | $inFormName = $value; |