Closed (works as designed)
Project:
Http Client
Version:
6.x-2.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2010 at 10:07 UTC
Updated:
5 Oct 2010 at 10:22 UTC
Content encoded as UTF-8 get the wrong content length due to use of strlen which is not UTF-8 safe.
Replace strlen with mb_strlen or strlen(utf8_encode($str)) to remedy the issue. Probably should make sure the content is actually UTF-8 encoded too before strlen'ing it!
Comments
Comment #1
SimmeLj commented