Status: New
Owner: ----
New issue 469 by bugzilla33: Chrome 3.0.195.27 XMLHttpRequest send incorect
POST data or have wrong unicode map
http://code.google.com/p/v8/issues/detail?id=469
1. Chrome 3.0.195.27 XMLHttpRequest send incorect POST data or have wrong
unicode map.
2. Run test.php5 to generate and store to disk binary files.
3. Results
a) bin_explorer_8.0.7600.16385.dat
bin_firefox_3.5.3.dat
bin_konqueror_4.3.2.dat
bin_opera_10.00.1750.dat
are binary the same.
b) bin_chrome_3.0.195.27.dat
bin_safari_4.0.3.531.9.1.dat
are wrong binary!!!
Please read about UTF-8 encoding to binary representation.
4. Summary
Server-side languages receive incorrect data from Safari & Chrome.
Only characters from javascript map array (test.php5) are invalid
encoded.
Explorer, Opera, Konqueror and Firefox send perfect data.
--- code ---
<?php
if($_SERVER['QUERY_STRING']){
file_put_contents('bin.dat',file_get_contents('php://input'));
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<script type="text/javascript">//<![CDATA[
map=
[832,833,835,836,884,894,903,2392,2393,2394,2395,2396,2397,2398,2399,2524,2
525,2527,2611,2614,2649,2650,2651,2654,2908,2909,3907,3917,3922,3927,3932,3
945,3955,3957,3958,3960,3969,3987,3997,4002,4007,4012,4025,8049,8051,8053,8
055,8057,8059,8061,8123,8126,8137,8139,8147,8155,8163,8171,8174,8175,8185,8
187,8189,8192,8193,8486,8490,8491,9001,9002,10972,63744,63745,63746,63747,6
3748,63749,63750,63751,63752,63753,63754,63755,63756,63757,63758,63759,6376
0,63761,63762,63763,63764,63765,63766,63767,63768,63769,63770,63771,63772,6
3773,63774,63775,63776,63777,63778,63779,63780,63781,63782,63783,63784,6378
5,63786,63787,63788,63789,63790,63791,63792,63793,63794,63795,63796,63797,6
3798,63799,63800,63801,63802,63803,63804,63805,63806,63807,63808,63809,6381
0,63811,63812,63813,63814,63815,63816,63817,63818,63819,63820,63821,63822,6
3823,63824,63825,63826,63827,63828,63829,63830,63831,63832,63833,63834,6383
5,63836,63837,63838,63839,63840,63841,63842,63843,63844,63845,63846,63847,6
3848,63849,63850,63851,63852,63853,63854,63855,63856,63857,63858,63859,6386
0,63861,63862,63863,63864,63865,63866,63867,63868,63869,63870,63871,63872,6
3873,63874,63875,63876,63877,63878,63879,63880,63881,63882,63883,63884,6388
5,63886,63887,63888,63889,63890,63891,63892,63893,63894,63895,63896,63897,6
3898,63899,63900,63901,63902,63903,63904,63905,63906,63907,63908,63909,6391
0,63911,63912,63913,63914,63915,63916,63917,63918,63919,63920,63921,63922,6
3923,63924,63925,63926,63927,63928,63929,63930,63931,63932,63933,63934,6393
5,63936,63937,63938,63939,63940,63941,63942,63943,63944,63945,63946,63947,6
3948,63949,63950,63951,63952,63953,63954,63955,63956,63957,63958,63959,6396
0,63961,63962,63963,63964,63965,63966,63967,63968,63969,63970,63971,63972,6
3973,63974,63975,63976,63977,63978,63979,63980,63981,63982,63983,63984,6398
5,63986,63987,63988,63989,63990,63991,63992,63993,63994,63995,63996,63997,6
3998,63999,64000,64001,64002,64003,64004,64005,64006,64007,64008,64009,6401
0,64011,64012,64013,64016,64018,64021,64022,64023,64024,64025,64026,64027,6
4028,64029,64030,64032,64034,64037,64038,64042,64043,64044,64045,64048,6404
9,64050,64051,64052,64053,64054,64055,64056,64057,64058,64059,64060,64061,6
4062,64063,64064,64065,64066,64067,64068,64069,64070,64071,64072,64073,6407
4,64075,64076,64077,64078,64079,64080,64081,64082,64083,64084,64085,64086,6
4087,64088,64089,64090,64091,64092,64093,64094,64095,64096,64097,64098,6409
9,64100,64101,64102,64103,64104,64105,64106,64112,64113,64114,64115,64116,6
4117,64118,64119,64120,64121,64122,64123,64124,64125,64126,64127,64128,6412
9,64130,64131,64132,64133,64134,64135,64136,64137,64138,64139,64140,64141,6
4142,64143,64144,64145,64146,64147,64148,64149,64150,64151,64152,64153,6415
4,64155,64156,64157,64158,64159,64160,64161,64162,64163,64164,64165,64166,6
4167,64168,64169,64170,64171,64172,64173,64174,64175,64176,64177,64178,6417
9,64180,64181,64182,64183,64184,64185,64186,64187,64188,64189,64190,64191,6
4192,64193,64194,64195,64196,64197,64198,64199,64200,64201,64202,64203,6420
4,64205,64206,64207,64208,64209,64210,64211,64212,64213,64214,64215,64216,6
4217,64285,64287,64298,64299,64300,64301,64302,64303,64304,64305,64306,6430
7,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,6
4324,64326,64327,64328,64329,64330,64331,64332,64333,64334]
s='';for(z=0;z<map.length;z++)s+=String.fromCharCode(map[z])
r=new XMLHttpRequest()
r.open('POST',location.href+'?'+Math.random(),true)
r.send(s)
//]]></script>
Attachments:
XMLHttpRequest_unocode.zip 10.2 KB
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---