r40709 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40708‎ | r40709 | r40710 >
Date:18:28, 10 September 2008
Author:yaron
Status:old
Tags:
Comment:
Fixed fencepost error
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc
@@ -301,7 +301,7 @@
302302 $uncompleted_square_brackets = 0;
303303 $uncompleted_curly_brackets = 2;
304304 $template_ended = false;
305 - for ($i = $fields_start_char; ! $template_ended && ($i <= strlen($existing_page_content)); $i++) {
 305+ for ($i = $fields_start_char; ! $template_ended && ($i < strlen($existing_page_content)); $i++) {
306306 $c = $existing_page_content[$i];
307307 // handle an end to a field and/or template declaration
308308 $template_ended = ($uncompleted_curly_brackets == 0 && $uncompleted_square_brackets == 0);

Status & tagging log