-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodeChecker parse produces invalid HTML (Uncaught SyntaxError: "" literal not terminated before end of script) #3748
Comments
The source code https://github.com/cyrusimap/cyrus-imapd/blob/master/imap/http_caldav.c#L2200 contains: buf_printf_markup(body, --level, \"</script>\"); Which is included in the generated HTML as:
The browsers report error on “733:145970”. Line 733, column 145970. Column 145970 is the When converting C-source files into HTML, the converter shall replace |
This HTML: <!DOCTYPE html><htlm>
<head>
</head>
<body>
Hello,
<script>
var f = "<script>var a ='bcd'</script><noscript>XXX</noscript>";
console.log(f);
</script>
Peter!
</body>
</html> is invalid in both Firefox (Error message «Uncaught SyntaxError: "" literal not terminated before end of script») and Chromium (error message «Uncaught SyntaxError: Invalid or unexpected token»). When the C-input contains |
…gt; to produce valid HTML Close Ericsson#3748
Describe the bug
CodeChecker parse --export html produces, among others, this file: parser_html.zip
When loaded in firefox it reports on line 733: Uncaught SyntaxError: "" literal not terminated before end of script
Chromium reports on the same line “Uncaught SyntaxError: Invalid or unexpected token”.
CodeChecker version
The text was updated successfully, but these errors were encountered: