move html escaping
parent
7e02c4fe4c
commit
b6075d6163
|
@ -343,7 +343,6 @@ sub rcs_recentchanges ($) { #{{{
|
||||||
|
|
||||||
my ($num) = @_;
|
my ($num) = @_;
|
||||||
|
|
||||||
eval q{use CGI 'escapeHTML'};
|
|
||||||
eval q{use Date::Parse};
|
eval q{use Date::Parse};
|
||||||
|
|
||||||
my ($sha1, $type, $when, $diffurl, $user, @pages, @message, @rets);
|
my ($sha1, $type, $when, $diffurl, $user, @pages, @message, @rets);
|
||||||
|
@ -372,7 +371,7 @@ sub rcs_recentchanges ($) { #{{{
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
push @message, { line => escapeHTML($title) };
|
push @message, { line => $title };
|
||||||
|
|
||||||
if (defined $message[0] &&
|
if (defined $message[0] &&
|
||||||
$message[0]->{line} =~ m/$web_commit_msg/) {
|
$message[0]->{line} =~ m/$web_commit_msg/) {
|
||||||
|
|
|
@ -123,7 +123,6 @@ sub rcs_recentchanges ($) { #{{{
|
||||||
|
|
||||||
return unless -d "$config{srcdir}/.svn";
|
return unless -d "$config{srcdir}/.svn";
|
||||||
|
|
||||||
eval q{use CGI 'escapeHTML'};
|
|
||||||
eval q{use Date::Parse};
|
eval q{use Date::Parse};
|
||||||
eval q{use Time::Duration};
|
eval q{use Time::Duration};
|
||||||
eval q{use XML::SAX};
|
eval q{use XML::SAX};
|
||||||
|
@ -156,7 +155,7 @@ sub rcs_recentchanges ($) { #{{{
|
||||||
my $when=time - str2time($logentry->{date}, 'UTC');
|
my $when=time - str2time($logentry->{date}, 'UTC');
|
||||||
|
|
||||||
foreach my $msgline (split(/\n/, $logentry->{msg})) {
|
foreach my $msgline (split(/\n/, $logentry->{msg})) {
|
||||||
push @message, { line => escapeHTML($msgline) };
|
push @message, { line => $msgline };
|
||||||
}
|
}
|
||||||
|
|
||||||
my $committype="web";
|
my $committype="web";
|
||||||
|
|
|
@ -5,7 +5,7 @@ ikiwiki (1.25) UNRELEASED; urgency=low
|
||||||
* Drop real uid/gid in the suid wrapper, thus allowing commits to remote
|
* Drop real uid/gid in the suid wrapper, thus allowing commits to remote
|
||||||
subversion repos and fixing some other issues.
|
subversion repos and fixing some other issues.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Sun, 3 Sep 2006 23:28:37 -0400
|
-- Joey Hess <joeyh@debian.org> Mon, 4 Sep 2006 00:19:50 -0400
|
||||||
|
|
||||||
ikiwiki (1.24) unstable; urgency=low
|
ikiwiki (1.24) unstable; urgency=low
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<td class="changelog" colspan="4">
|
<td class="changelog" colspan="4">
|
||||||
<TMPL_LOOP NAME="MESSAGE">
|
<TMPL_LOOP NAME="MESSAGE">
|
||||||
<TMPL_IF NAME="LINE">
|
<TMPL_IF NAME="LINE">
|
||||||
<TMPL_VAR NAME="LINE"><br />
|
<TMPL_VAR NAME="LINE" ESCAPE="HTML"><br />
|
||||||
</TMPL_IF>
|
</TMPL_IF>
|
||||||
</TMPL_LOOP>
|
</TMPL_LOOP>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue