Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -449,7 +449,7 @@ |
450 | 450 | $component = $tag_components[$i]; |
451 | 451 | if ( $component == 'multiple' ) $allow_multiple = true; |
452 | 452 | if ( $component == 'strict' ) $strict_parsing = true; |
453 | | - $sub_components = explode( '=', $component, 2 ); |
| 453 | + $sub_components = array_map( 'trim', explode( '=', $component, 2 ) ); |
454 | 454 | if ( count( $sub_components ) == 2 ) { |
455 | 455 | if ( $sub_components[0] == 'label' ) { |
456 | 456 | $template_label = $sub_components[1]; |
— | — | @@ -678,7 +678,7 @@ |
679 | 679 | } elseif ( $component == 'edittools' ) { // free text only |
680 | 680 | $free_text_components[] = 'edittools'; |
681 | 681 | } else { |
682 | | - $sub_components = explode( '=', $component, 2 ); |
| 682 | + $sub_components = array_map( 'trim', explode( '=', $component, 2 ) ); |
683 | 683 | if ( count( $sub_components ) == 1 ) { |
684 | 684 | // add handling for single-value params, for custom input types |
685 | 685 | $field_args[$sub_components[0]] = null; |