Re: First stupid post of the year.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Lynch wrote:
> On Wed, January 2, 2008 1:27 pm, Jim Lucas wrote:
>>> The string contains:
>>>
>>>        A       
>>>
>> The problem is, is that you are not getting
>>
>>        A       
>> when you submit your form.
>>
>> It is being URL encoded by the browser and you are actually getting
>>
>>  %20 %20 %20 A %20 %20 %20 
> 
> But that is URL *DE*-coded by PHP internally before it's crammed into
> $_POST/$_GET/$_COOKIES!
> 

Ok, so here is my little friend, my packet exploder...

So, I wrote this packet decoder last week for a different project.  Come to find out, it is a very
hand little tool.

Takes text input and dumps it like a normal packet analyzer application.

Check out what is found.

http://www.cmsws.com/examples/html/form_encoding.php

This I think shows what tedd is looking for.

so, from this I deduce that this should work.

$submit = trim($submit, "\xA0\x20");

What do you guys/gals think?

-- 
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux