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

Topic revision: r3 - 2004-09-06 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.