From: Giuseppe Bilotta Date: Fri, 06 Feb 2009 10:55:19 GMT Subject: Re: [PATCHv2 1/6] gitweb: channel image in rss feed Message-ID: In-Reply-To: <200902042356.34407.jnareb@gmail.com> On Wed, Feb 4, 2009 at 11:56 PM, Jakub Narebski wrote: >> + 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"; >> + } > > A question: how should URL, which is _contents_ of a tag (instead of > as _attribute_ value), quoted (escaped)? I don't think it is specified > in RSS. I guess that using esc_url() is a safe solution. Indeed, it might not be needed, but it's doesn't do any damage to escape the URL. -- Giuseppe "Oblomov" Bilotta