git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gitweb commitdiff page - binary files with ampersands in filename?
@ 2013-04-09 17:03 Oj W
  2013-04-15 21:42 ` Jakub Narębski
  0 siblings, 1 reply; 2+ messages in thread
From: Oj W @ 2013-04-09 17:03 UTC (permalink / raw)
  To: git

Change a binary file whose filename contains an ampersand, then view
the commitdiff page in gitweb.

Git outputs a message like "Binary files a/b&w.dll and b/b&w.dll differ"

Gitweb format_diff_from_to_header() doesn't notice anything in that
output which needs escaping, and writes it directly to the XHTML 1.0
Strict output.

Then gitweb's output is invalid XML, meaning that browsers such as
Firefox will refuse to display the page.

(tested with v 1.7.9.5, but I can't see anything in latest
https://github.com/git/git/blob/master/gitweb/gitweb.perl#CL2158 which
is looking for text like "Binary files ... differ")

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-15 21:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 17:03 gitweb commitdiff page - binary files with ampersands in filename? Oj W
2013-04-15 21:42 ` Jakub Narębski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).