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 protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de
>
> This email sent to [email protected]
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]