Tags:
archive_me1Add my vote for this tag create new tag
, view all tags

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 | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-09-06 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.