Closing brace in a form field leads to bad parsing
Inserting a closing brace in a form field make the metadata parsing wrong.
I am currently using the following patch on Meta.pm:
--- Meta.pm.old 2003-04-07 11:00:34.000000000 +0200
+++ Meta.pm 2003-04-07 10:59:14.000000000 +0200
@@ -251,6 +251,7 @@
$value =~ s/\r/\n/go;
$value =~ s/\n/
/go;
$value =~ s/"/"/go;
+ $value =~ s/}/%_B_%/go;
return $value;
}
@@ -261,6 +262,7 @@
$value =~ s/
/\n/go;
$value =~ s/"/"/go;
+ $value =~ s/%_B_%/}/go;
return $value;
}
Test case
Add an '}' is a text field.
Environment
| TWiki version: |
20030201-1 |
| TWiki plugins: |
|
| Server OS: |
Linux |
| Web server: |
Apache |
| Perl version: |
|
| Client OS: |
|
| Web Browser: |
|
--
NicolasBurrus - 07 Apr 2003
Follow up
It looks like you are referring to the
}% string that terminates meta data. This has been fixed already for
TWikiRelease01Sep2004, just verified. Please reopen this bug in case not.
Fix record