First all, thanks for all efforts w.r.t. TWiki and this plugin.
After installing the plugin, RSS feeds fail. Inspecting the RSS feed reveals that a CR is put in front, causing a non-compliant XML file:
^M
<?xml version="1.0" encoding="ISO-8859-1" ?>
I run the following TWiki config:
-
WIKIVERSION = 04 Sep 2004 $Rev: 1742 $
- Lots of plugins:
- DefaultPlugin
- SpreadSheetPlugin
- ActionTrackerPlugin
- CalendarPlugin
- CommentPlugin
- EditTablePlugin
- InterwikiPlugin
- RenderListPlugin
- SlideShowPlugin
- SmiliesPlugin
- TWikiDrawPlugin
- TablePlugin
- Speedy CGI
- Apache 2.0.52 on RHEL 3.0
In a different installation, there is more unneeded text in the XML:
Expires: 0
Cache-control: max-age=0, must-revalidate
^M
^M
<?xml version="1.0" encoding="ISO-8859-1" ?>
And funny thing is, this text appears at the top of each and every normal page.
Index: lib/TWiki/Plugins/WysiwygPlugin.pm
===================================================================
--- lib/TWiki/Plugins/WysiwygPlugin.pm (revision 8149)
+++ lib/TWiki/Plugins/WysiwygPlugin.pm (working copy)
@@ -203,11 +203,11 @@
# DEPRECATED in Dakar (modifyHeaderHandler does the job better)
$TWikiCompatibility{writeHeaderHandler} = 1.1;
sub writeHeaderHandler {
- return '' if $MODERN;
-
my $query = shift;
- return "Expires: 0\nCache-control: max-age=0, must-revalidate\n";
-
+ if( $query->param( 'wysiwyg_edit' )) {
+ return "Expires: 0\nCache-control: max-age=0, must-revalidate";
+ }
+ return '';
}
Fixed in SVN 8151
CC