View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0030447 | mantisbt | administration | public | 2022-06-02 12:03 | 2023-10-31 16:32 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Target Version | 2.26.0 | Fixed in Version | 2.26.0 | ||
Summary | 0030447: Detect invalid HTML in language strings | ||||
Description | When localizing strings with TranslateWiki.net, contributors are able to insert HTML tags. Doing so, they have the ability to introduce invalid HTML syntax (intentionally or not), which could in turn cause problems within MantisBT. The test_langs.php script should try to detect problems such as invalid tags, unexpected end tags, open/end tag mismatch, etc. so they can be fixed before releasing. | ||||
Additional Information | Ideally, we should be able to run such tests automatically (eg. via TravisCI) to raise flags immediately as errors are introduced. | ||||
Tags | No tags attached. | ||||
MantisBT: master 3f66fcc5 2014-05-09 19:39 Details Diff |
Add basic syntax check for HTML tags Using DOM, captures triggered warnings through custom error handler / exception to identify common issues such as invalid tags, unexpected end tag, open/end tag mismatch, etc. Note: will not detect missing end tags. Fixes 0030447 |
Affected Issues 0030447 |
|
mod - admin/test_langs.php | Diff File |