If you have a form field that contains $title as part of the value, it gets expanded to the name of the form field. It should remain as is. The $title may only be expanded if it exists in the format="" parameter.
Fix:
--- Render.pm (revision 18078)
+++ Render.pm (working copy)
@@ -854,6 +854,7 @@
# Otherwise default to value
$format = '$value';
}
+ $format =~ s/\$title/X-Title-Place-Holder/go; # Item6267: Use place holder (see below)
my $formWeb;
if ( $formTopic ) {
@@ -913,7 +914,8 @@
$text = $altText || '';
}
- $text =~ s/\$title/$title/go;
+ # Item6267: Can't use \$title since "$title" might exist in form field value
+ $text =~ s/X-Title-Place-Holder/$title/go;
return $text;
}
--
TWiki:Main/PeterThoeny
- 15 May 2009