gitweb: attempt to extract charset for text/html blob_plain
commitfd5b6443572efe4b1021760e326d3a5c07afb04a
authorKyle J. McKay <mackyle@gmail.com>
Tue, 14 Apr 2015 23:01:14 +0000 (14 16:01 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 14 Apr 2015 23:01:14 +0000 (14 16:01 -0700)
tree4a8c16eab4176b02fb89d2250b921495beb240f1
parent43b04c85d53c0bb004dc685003df12dcbbbcad85
gitweb: attempt to extract charset for text/html blob_plain

If we are showing a blob_plain that is of type text/html attempt
to extract any embedded charset from the <head>...</head>
section and use that instead if it's sane (in other words it
does not repudiate the charset we've determined by inspection).

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
gitweb/gitweb.perl