treviettreviet / chrome-rest-client

Automatically exported from code.google.com/p/chrome-rest-client
0 stars 0 forks source link

Encode/decode fails with %00 NUL char #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a URL parameter with %00.
2. Enter text after %00.
2. Press "dec" button.

What is the expected output? What do you see instead?
Parameter should maintain %00 (NUL) character but instead chops off the end of 
the string at that character.

On what operating system?
Windows Server 2008 R2 Enterprise x64

Please provide any additional information below.
Chrome Version 23.0.1271.64 m

Original issue reported on code.google.com by james.jdunne@gmail.com on 7 Nov 2012 at 4:35

GoogleCodeExporter commented 9 years ago
I believe it is right behavior. Decode function use javascript's 
decodeURIComponent function which returns empty string when decode "%00".

Original comment by jarro...@gmail.com on 10 Nov 2012 at 1:02

GoogleCodeExporter commented 9 years ago

Original comment by jarro...@gmail.com on 19 Jan 2013 at 10:46