[Tickets #13275] Horde_Pack corrupts non-UTF8 strings

noreply at bugs.horde.org noreply at bugs.horde.org
Fri Jun 20 12:18:52 UTC 2014


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/13275
------------------------------------------------------------------------------
  Ticket             | 13275
  Created By         | Thomas Jarosch <thomas.jarosch at intra2net.com>
  Summary            | Horde_Pack corrupts non-UTF8 strings
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Thomas Jarosch <thomas.jarosch at intra2net.com> (2014-06-20 12:18) wrote:

Hi,

while still trying to track down #13274, I noticed a json_encode()  
error message in the backtrace.

Basically Horde_Pack defaults to JSON encoding using json_encode() on my box.
json_encode() accepts valid UTF-8 strings only, otherwise it corrupts  
the data.

Please see the attached test script to show the data corruption.

A "workaround" is to remove the "Json.php" Pack driver from "Pack/Driver",
so it will default to Serialize.php then.

Cheers,
Thomas




Thomas Jarosch <thomas.jarosch at intra2net.com> (2014-06-20 12:18)  
uploaded: test_horde_pack.php

http://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=test_horde_pack.php&ticket=13275&fn=%2Ftest_horde_pack.php





More information about the bugs mailing list