Monday, January 26, 2009

Re: Passing an email address as param with a plus(+) sign

Never mind, thank you Schreck.

*On Mon, Jan 26, 2009 at 11:38:44PM -0500 Jon Molesa <rjmolesa@gmail.com> wrote:

> Date: Mon, 26 Jan 2009 23:38:44 -0500
> From: Jon Molesa <rjmolesa@gmail.com>
> Subject: Re: Passing an email address as param with a plus(+) sign
> To: cake-php@googlegroups.com
>
>
> Upon urldecode though it converts back to a space.
>
> *On Tue, Jan 27, 2009 at 04:23:15AM +0000 schreck84@gmail.com <schreck84@gmail.com> wrote:
>
> > Date: Tue, 27 Jan 2009 04:23:15 +0000
> > From: schreck84@gmail.com
> > Subject: Re: Passing an email address as param with a plus(+) sign
> > To: cake-php@googlegroups.com
> >
> > The plus sign needs to be url encoded. The plus sign translates to a space when used in the url
> > Schreck
> >
> > -----Original Message-----
> > From: Jon Molesa <rjmolesa@gmail.com>
> >
> > Date: Mon, 26 Jan 2009 23:19:01
> > To: CakePHP<cake-php@googlegroups.com>
> > Subject: Passing an email address as param with a plus(+) sign
> >
> >
> >
> > I'm trying to pass a valid email address as a parameter in the url.
> >
> > foo+bar@example.com
> >
> > in my model it strips the + sign.
> >
> > function confirm($email){
> > $this->set('email',$email);
> > }
> >
> > confirm.ctp
> >
> > <?php echo $email ?>
> >
> > outputs
> >
> > foo bar@example.com
> >
> > I believe this is happening prior to the controller function getting
> > ahold of the string as I've tried various encoding functions including
> > Security::cipher() at the beginning of the function upon decoding I
> > still get the above output. Can anyone suggest how I might be able to
> > retain the + sign in my controller logic and back out to the view?
> >
> > --
> > Jon Molesa
> > rjmolesa@gmail.com
> > if you're bored or curious
> > http://rjmolesa.com
> >
> >
> >
> > >
>
> --
> Jon Molesa
> rjmolesa@consoltec.net
> if you're bored or curious
> http://rjmolesa.com
>
>
--
Jon Molesa
rjmolesa@consoltec.net
if you're bored or curious
http://rjmolesa.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: