[Bug 4516] Escape SGML:Parser:OpenSP's croaking on some error messages

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4516

           Summary: Escape SGML:Parser:OpenSP's croaking on some error
                    messages
           Product: Validator
           Version: 0.8.0b1
          Platform: All
               URL: http://lists.w3.org/Archives/Public/www-
                    validator/2007Apr/0118.html
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: link@pobox.com
        ReportedBy: ot@w3.org
         QAContact: www-validator-cvs@w3.org


As reported by Frank on www-validator:
[[
| Unexpected error message format ((invalid
location):47239440633056.2322:W: URL | Redirected to
| "http://www.xyzzy.claranet.de/w3c/html2070.dtd"
| ) at /usr/local/lib/perl/5.8.8/SGML/Parser/OpenSP.pm line 45
]]

SPO has a regexp to match what is an acceptable error message from OpenSP
    my @comp = split(/(?:^|\n)(?:<[^>]+>)?\Q$name\E:(\d+):(\d+):\s*/, $mess);
but this regexp seems to not catch some rare messages (in this case, a
redirected DTD SI)

Received on Tuesday, 1 May 2007 15:04:00 UTC