View Issue Details

IDProjectCategoryView StatusLast Update
0034393mantisbthtmlpublic2024-05-12 12:34
Reporterpiotrusx Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.25.5 
Target Version2.26.2Fixed in Version2.26.2 
Summary0034393: Incorrect handling of HTML hexadecimal character references &#xNNN;
Description

Hello,
is there any chance to display hex number code character entity correctly?
One of my system sends my national letters hex number coded signs and I can't see my national characters correctly.
Any chance to change it?

Steps To Reproduce
ł - ł - ł - ł

ł - ł - ł - ł

TagsNo tags attached.

Relationships

related to 0034040 resolvedcommunity Markdown processing code cleanup (part 2) 

Activities

dregad

dregad

2024-04-03 05:47

developer   ~0068786

piotrusx,

The provided information is not sufficient to provide any help in resolving the issue. A complete and detailed description is required for the support team to get a clear understanding of the problem.

Please explain what you do, what are the results you expect to get and what you actually get.

Also provide detailed, step-by-step instructions to reproduce the issue; the additional information listed below may also be useful:

  • Exact version of MantisBT, PHP, Database, Web server, Browser and Operating System
  • Relevant customizations (e.g. changes in config_inc.php, etc)
  • Installed plugins or custom functions ?
  • Was the MantisBT source code modified in any way ?
piotrusx

piotrusx

2024-04-03 06:16

reporter   ~0068787

dregad,
I have a question only, because maybe it is normal Mantis behavior.
If I want to use the letter "ł" in Mantis I can write it in note box using entities: "& lstrok;" or "&# 322;" but when I use hex code "&# x142;" I see "&# x142;" - not the letter "ł".
Is this normal in Mantis or a bug in my system?
To answer this, do you need additional information?

dregad

dregad

2024-04-03 12:37

developer   ~0068788

Last edited: 2024-04-04 11:53

This has actually just been fixed in master branch (see MantisBT master 3aec6e68) as part of Markdown fixes in MantisCoreFormatting plugin (0034040); it will be part of 2.27.0 release.

dregad

dregad

2024-04-04 13:06

developer   ~0068790

I just checked, and in fact the problem is only fixed when Markdown processing is enabled in MantisCoreFormatting plugin options.

The incorrect handling of HTML hexadecimal character references &#xNNN; is still present when Markdown is switched off. I'll commit a separate fix shortly.

dregad

dregad

2024-04-06 11:52

developer   ~0068794

Given the simplicity of the patch MantisBT master 10042770 , and the fact that it also resolves the issue with Markdown, I'm back-porting to 2.26 branch.

Related Changesets

MantisBT: master 3aec6e68

2024-03-31 23:15

grummbeer

Committer: dregad


Details Diff
Clean up markdown processing

- Process input via Markdownparser and return the result, no further
text processing.
- During parsing, catch all <code> blocks and replace them with a hash
value.
- After the markup is returned from Parsedown, apply mentions and links
- Restore the untouched <code> Blocks back in place.

Fixes 0034040, PR https://github.com/mantisbt/mantisbt/pull/1976
Also fixes 0022315, 0022320, 0024241, 0024628, 0024810, 0022231, 0023738

Signed-off-by: Damien Regad <dregad@mantisbt.org>
Affected Issues
0022231, 0022315, 0022320, 0023738, 0024241, 0024628, 0024810, 0034040, 0034393
mod - plugins/MantisCoreFormatting/MantisCoreFormatting.php Diff File
mod - plugins/MantisCoreFormatting/core/MantisMarkdown.php Diff File

MantisBT: master 10042770

2024-04-04 13:08

dregad


Details Diff
Fix handling of hex-encoded character references

This is necessary when Markdown processing is switched off.

Fixes 0034393
Affected Issues
0034393
mod - core/string_api.php Diff File

MantisBT: master-2.26 6c2c21ab

2024-04-04 13:08

dregad


Details Diff
Fix handling of hex-encoded character references

This is necessary when Markdown processing is switched off.

Fixes 0034393

Backported from master branch (cherry picked from commit
100427709e55e5d4da11e1dbb8d6816418b64646)
Affected Issues
0034393
mod - core/string_api.php Diff File