diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 931db4f7eb..f8a5d2e077 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -6075,6 +6075,16 @@ XML
"$alt_url\n" .
"$descr\n" .
"en\n";
+ if (defined $logo || defined $favicon) {
+ # prefer the logo to the favicon, since RSS
+ # doesn't allow both
+ my $img = esc_url($logo || $favicon);
+ print "\n" .
+ "$img\n" .
+ "$title\n" .
+ "$alt_url\n" .
+ "\n";
+ }
} elsif ($format eq 'atom') {
print <