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/&/&\;/go;
+ $text =~ s/</<\;/go;
+ $text =~ s/>/>\;/go;
+ $text =~ s/\t/ /go;
$text = "$vtext$text</textarea></form>";
if( $viewRaw !~ /debug/i ) {
--
PeterThoeny - 05 Jan 2003