diff --git a/wiki.pl b/wiki.pl index 7e4b0e71..5c2a45a0 100755 --- a/wiki.pl +++ b/wiki.pl @@ -79,11 +79,11 @@ $CookieName = 'Wiki'; # Name for this wiki (for multi-wiki sites) # Fix if defaults do not work $SiteBase = ''; # Full URL for header $FullUrl = ''; # Set if the auto-detected URL is wrong -$HttpCharset = ''; # Charset for pages, default is ISO-8859-1 +$HttpCharset = 'ISO-8859-1'; # Charset for pages, eg. 'UTF-8' $MaxPost = 1024 * 210; # Maximum 210K posts (about 200K for pages) $WikiDescription = # Version string '

OddMuse' - . '

$Id: wiki.pl,v 1.27 2003/04/11 11:03:29 as Exp $'; + . '

$Id: wiki.pl,v 1.28 2003/04/12 12:40:13 as Exp $'; # EyeCandy $StyleSheet = ''; # URL for CSS stylesheet (like '/wiki.css') @@ -336,13 +336,13 @@ sub ApplyRules { } } elsif (m/\G(\s*\n)+/cg) { $fragment = &CloseHtmlEnvironments() . '

'; # there is another one like this further down - } elsif (m/\G(\<include +"(.*)"\>\s*\n?)/cgi) { # includes the text of the given URI verbatim + } elsif (m/\G(\<include +"(.*)"\>[ \t]*\n?)/cgi) { # includes the text of the given URI verbatim $oldmatch = $1; my $oldpos = pos; &ApplyRules(&QuoteHtml(&GetRaw($2)),0); pos = $oldpos; &DirtyBlock($oldmatch, \$block, \$fragment, \@blocks, \@flags); # parse recursively! - } elsif (m/\G(\<rss +"(.*)"\>\s*\n?)/cgi) { # stores the parsed RSS of the given URI + } elsif (m/\G(\<rss +"(.*)"\>[ \t]*\n?)/cgi) { # stores the parsed RSS of the given URI $oldmatch = $1; print &RSS($2); &DirtyBlock($oldmatch, \$block, \$fragment, \@blocks, \@flags); # parse recursively! @@ -645,7 +645,7 @@ sub RSS { $rss->parse($data); }; if ($@) { - return "[RSS parsing failed for $uri]"; + return $q->p($q->strong("[RSS parsing failed for $uri]")); } else { my $counter = 0; my $str;