tagproj.cgi: behave more robustly with peculiar input
commit9d2bd251acf47eaec1b70a23203d6385f95d738e
authorKyle J. McKay <mackyle@gmail.com>
Mon, 20 Apr 2015 01:37:11 +0000 (19 18:37 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 20 Apr 2015 01:37:11 +0000 (19 18:37 -0700)
treee5702c67233b5a5bbea2a3d6db3e5b37fb70c782
parent87a6ca2cee3a68c24832a36fb27e4cd6d9c325a9
tagproj.cgi: behave more robustly with peculiar input

Be sure to HTML escape any odd characters and send back the
characters as we got them after converting them to UTF-8 if
necessary and including a charset=UTF-8 in our output.

Treat a ctags file with a first line that is not a positive
decimal number as having a count of 1.

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