View Issue Details

IDProjectCategoryView StatusLast Update
0030447mantisbtadministrationpublic2023-10-31 16:32
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Target Version2.26.0Fixed in Version2.26.0 
Summary0030447: 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.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master 3f66fcc5

2014-05-09 19:39

dregad


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