r3 - 06 Sep 2004 - 06:29:04 - PeterThoenyYou are here: TWiki >  Codev Web > BraceInFormField
Tags:
, create new tag

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

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo