Re: formValueForKey
Re: formValueForKey
- Subject: Re: formValueForKey
- From: Johann Werner <email@hidden>
- Date: Thu, 01 Sep 2011 18:59:22 +0200
Hi Gino,
you have to url-encode the plus sign in your URL.
jw
Am 01.09.2011 um 18:20 schrieb Gino Pacitti:
> Hi All
>
> I have a query string coming in to a direct action:
>
> /someapp.woa/wa/someaction?crypt=3CC0hsl3LP0e4ruLa+icqdcIKDe9nNhNU9Iw6vcBz1t02W2ONiG9I5DvBiiVFg97PiOODXynoFldtkJETPjPeQyRU21lX8eXNdtYVbSYHs4=
>
> When it arrives I get this:
>
> String encryptedwithKeys = (String)this.request().formValueForKey("crypt");
> System.out.println("encryptedwithKeys " + new String(encryptedwithKeys));
>
>
> 3CC0hsl3LP0e4ruLa icqdcIKDe9nNhNU9Iw6vcBz1t02W2ONiG9I5DvBiiVFg97PiOODXynoFldtkJETPjPeQyRU21lX8eXNdtYVbSYHs4=
>
> The '+' symbol here:
>
> 3CC0hsl3LP0e4ruLa+icqdcIKDe9nNhNU9...
>
> seems to be replaced with a space:
>
> 3CC0hsl3LP0e4ruLa icqdcIKDe9nNhNU9...
>
> Any ideas why formValueForKey does this?
>
>
> Gino
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden