Tags:
create new tag
view all tags

Bug: View revision in raw format is not correct with some pages.

With some (long?) page, the text is partially viewed outside the textarea with More => View Revision in raw format. The same revision (last) is ok with Edit function (but not always permitted).

Test case

The same problem on my site and twiki.org with TWikiRegistration page. http://twiki.org/cgi-bin/view/TWiki/TWikiRegistrationPub?rev=1.5&raw=on

Environment

TWiki version: 01Dec2001
TWiki plugins:  
Server OS:  
Web server:  
Perl version:  
Client OS: Win95 and NT
Web Browser: IE 5.5 - K-Meleon - Mozilla 0.9.8+

-- PhilippeBricout - 02 Apr 2002

Follow up

Fix record

This is now fixed, in TWikiAlphaRelease and at TWiki.org:

Index: view
===================================================================
RCS file: /cvsroot/twiki/twiki/bin/view,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -r1.57 -r1.58
*** view        5 Jan 2003 02:38:11 -0000       1.57
--- view        5 Jan 2003 09:19:17 -0000       1.58
***************
*** 153,156 ****
--- 153,160 ----
        my $vtext = "<form><textarea readonly=\"readonly\" wrap=\"virtual\"
rows=\"%EDITBOXHEIGHT%\" cols=\"%EDITBOXWIDTH%\">";
        $vtext = &TWiki::handleCommonTags( $vtext, $topic );
+         $text =~ s/&/&amp\;/go;
+         $text =~ s/</&lt\;/go;
+         $text =~ s/>/&gt\;/go;
+         $text =~ s/\t/   /go;
        $text = "$vtext$text</textarea></form>";
        if( $viewRaw !~ /debug/i ) {

-- PeterThoeny - 05 Jan 2003

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2003-01-05 - 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.