Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php |
— | — | @@ -49,8 +49,10 @@ |
50 | 50 | static function unhandledFieldsHTML( $template_contents ) { |
51 | 51 | $text = ""; |
52 | 52 | foreach ( $template_contents as $key => $value ) { |
53 | | - if ( $key != '' && !is_numeric( $key ) ) |
| 53 | + if ( !is_null( $key ) && !is_numeric( $key ) ) { |
| 54 | + $key = urlencode( $key ); |
54 | 55 | $text .= self::hiddenFieldHTML( "_unhandled_$key", $value ); |
| 56 | + } |
55 | 57 | } |
56 | 58 | return $text; |
57 | 59 | } |
— | — | @@ -64,7 +66,7 @@ |
65 | 67 | $additional_template_text = ""; |
66 | 68 | foreach ( $wgRequest->getValues() as $key => $value ) { |
67 | 69 | if ( substr( $key, 0, 11 ) == '_unhandled_' ) { |
68 | | - $field_name = substr( $key, 11 ); |
| 70 | + $field_name = urldecode( substr( $key, 11 ) ); |
69 | 71 | $additional_template_text .= "|$field_name=$value\n"; |
70 | 72 | } |
71 | 73 | } |