View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023645 | mantisbt | other | public | 2017-11-17 03:47 | 2017-12-04 02:17 |
Reporter | atrol | Assigned To | atrol | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 2.8.0 | ||||
Target Version | 2.9.0 | Fixed in Version | 2.9.0 | ||
Summary | 0023645: No preview of ANSI encoded text files that contain German Umlauts | ||||
Description | Preview (clicking + to expand) of a ANSI encoded text file that contain German Umlauts is not possible. UTF-8 encoded files work, see attchached examples. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Strange, it works on https://www.mantisbt.org/bugs, but not on my installation. |
|
Caused by different behavior of htmlspecialchars depending on PHP version. Will provide a PR for it. |
|
MantisBT: master 2fd81a3e 2017-11-17 03:46 Details Diff |
Fix preview of non UTF-8 text attachments Functionality of function htmlspecialchars depends on PHP version [1]. The change ensures that - UTF-8 is used in any case - Single non UTF-8 characters are replaced in the string instead of replacing the whole string by an empty string [1] www.php.net/manual/en/function.htmlspecialchars.php Fixes 0023645 |
Affected Issues 0023645 |
|
mod - core/print_api.php | Diff File |