Add handling / mitigation for invalid XML
authorJeff Godin <jgodin@tadl.org>
Wed, 4 Dec 2013 18:03:00 +0000 (13:03 -0500)
committerJeff Godin <jgodin@tadl.org>
Thu, 15 May 2014 18:20:38 +0000 (14:20 -0400)
commit314c09e936feeb990c250e04a42e7549f95e1194
treef0ff69b1e4fcca7b073648e3a85f5b6403eb3d34
parent81cbbf5eb0458f0ccb8da486e553bccd456ef1e4
Add handling / mitigation for invalid XML

Wrap XML parsing attempts in an eval block to avoid having the CGI
generate an Internal Server Error.

Add support for removing raw Control-D characters, which we have
experienced in the wild when working with INN-REACH.

Generate warnings and attempt to gracefully fail with a log entry
and the "do not hang INN-REACH" message approach used in fail().

Signed-off-by: Jeff Godin <jgodin@tadl.org>
iNCIPit.cgi