diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index bdaa4e9463460a149a5c7f13881e5373257bc4e5..c5548875ffd6e7d1afd7567688427c00580c3ef2 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
# want to be sure not to break that by serving the image as an
# attachment (though Firefox 3 doesn't seem to care).
my $sandbox = $prevent_xss &&
- $type !~ m!^(?:text/plain|image/(?:gif|png|jpeg))$!;
+ $type !~ m!^(?:text/plain|image/(?:gif|png|jpeg))(?:[ ;]|$)!;
print $cgi->header(
-type => $type,