Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -1163,7 +1163,9 @@ |
1164 | 1164 | $form_text .= SFFormUtils::hiddenFieldHTML( 'partial', 1 ); |
1165 | 1165 | } else { |
1166 | 1166 | $free_text = null; |
1167 | | - $existing_page_content = preg_replace( '/�\{(.*?)\}�/s', '{{\1}}', $existing_page_content ); |
| 1167 | + $existing_page_content = preg_replace( array( '/�\{/m','/\}�/m' ), |
| 1168 | + array( '{{','}}' ), |
| 1169 | + $existing_page_content ); |
1168 | 1170 | $existing_page_content = preg_replace( '/\{\{\{insertionpoint\}\}\}/', '', $existing_page_content ); |
1169 | 1171 | } |
1170 | 1172 | } elseif ( $source_is_page ) { |