View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008888 | mantisbt | localization | public | 2008-02-14 03:34 | 2020-03-10 17:23 |
Reporter | cheater | Assigned To | dregad | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | no change required | ||
OS | Windows | OS Version | XP | ||
Product Version | 1.1.1 | ||||
Summary | 0008888: Wrong configuration-result | ||||
Description | The function "config_get()" returns a wrong result, if type = "complex" and serialized string contains umlaute. Solution: Using utf8_decode() See core/config_api.php, line 128-130 Fix: | ||||
Steps To Reproduce | serialized string in db:
Changing status by using actiongroup results bug_actiongroup_status-error | ||||
Tags | No tags attached. | ||||
I've confirmed this fix. It should be applied to both core/config_api.php and adm_config_report.php. |
|
Unserialize with utf8 content will get trouble. To fix it, try the code below: case CONFIG_TYPE_COMPLEX: |
|
@bitplus, can you please explain your suggested fix. |
|
Sorry, vboctor, I don't know the detail of this solution. Maybe it is a bug of PHP. I learned from the user contributed notes of php user manual http://www.php.net/manual/en/function.unserialize.php#84730. And it works fine for me. |
|
Paul, please check this. May have been fixed with all the UTF-8 work you've been doing for 1.2. |
|
This problem is only there because the configuration is saved in the current admins language. Each time I have to change my config I do this with an admin account that has english as language set. |
|
We are resolving this issue as "no change required", because it was reported against an old version of MantisBT which is no longer supported. We recommend that you upgrade to the latest stable version [1]; if after doing so the problem still exists, do not hesitate to reopen the issue. |
|