MantisBT: master 2fd81a3e

Author Committer Branch Timestamp Parent
atrol atrol master 2017-11-17 03:46 master 27102c48
Affected Issues  0023645: No preview of ANSI encoded text files that contain German Umlauts
Changeset

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

mod - core/print_api.php Diff File