Permalink
Browse files

[9] Encode HTML entities for RSS validation

Signed-off-by: DoesntMatter <jaed1@gmx.net>
  • Loading branch information...
DoesntMatter committed Jan 21, 2012
1 parent 7e3cdcc commit 8b978a7740374914ffc069e1c461e0fc7d992e22
Showing with 3 additions and 2 deletions.
  1. +3 −2 gitlog_to_rss.pl
View
@@ -22,6 +22,7 @@
use strict;
use Getopt::Long;
use Cwd;
use HTML::Entities;
my %options;
my $gitlog;
@@ -103,12 +104,12 @@ sub ParseGitLog {
print "Command failed: $!\n";
return undef;
}
return $result;
return HTML::Entities::encode($result);
}
sub SplitCommits {
my $gitlog = shift || return undef;
my @items = split(/\n>/, $gitlog);
my @items = split(/\n&gt;/, $gitlog);
my $size = scalar @items;
my (@lines, @commit, $i);

0 comments on commit 8b978a7

Please sign in to comment.