Re: Sanitize:clean replacing hyphens in email addresses

2009-07-20 Thread Carlos Lavin
h() is cake's wrapper for htmlspecialchars()
http://book.cakephp.org/view/121/Global-Functions#h-703

2009/7/20 Bs 

>
> Hi,
>
> thanks for your answer. What do you mean by "h() function"?
>
>
>
> On 17 Jul., 19:13, "Dr. Loboto"  wrote:
> > I personally validate data before save and output it on pages through h
> > () function. That's all. No modification of user data. With such
> > approach I do not see use forSanitize::clean() at all.
> >
> > On Jul 17, 6:34 pm, Bs  wrote:
> >
> > > Hi,
> >
> > > I'm usingSanitize::clean tosanitizemy user data on a registration
> > > page after this tutorial:
> >
> > >http://www.jonnyreeves.co.uk/2008/06/cakephp-activating-user-account-.
> ..
> >
> > > Like mentioned in an much older thread, the sanitizer replaces the
> > > hyphens in email addresses for some reason:
> >
> > >http://groups.google.de/group/cake-php/browse_thread/thread/d0debc94f.
> ..
> >
> > > Are there any new methods to fix this behaviour than writing an own
> > > method which afterwards brings the hyphens back again? Will this
> > > possibly be fixed in a future cakephp release?
> >
>

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Sanitize:clean replacing hyphens in email addresses

2009-07-20 Thread Bs

Hi,

thanks for your answer. What do you mean by "h() function"?



On 17 Jul., 19:13, "Dr. Loboto"  wrote:
> I personally validate data before save and output it on pages through h
> () function. That's all. No modification of user data. With such
> approach I do not see use forSanitize::clean() at all.
>
> On Jul 17, 6:34 pm, Bs  wrote:
>
> > Hi,
>
> > I'm usingSanitize::clean tosanitizemy user data on a registration
> > page after this tutorial:
>
> >http://www.jonnyreeves.co.uk/2008/06/cakephp-activating-user-account-...
>
> > Like mentioned in an much older thread, the sanitizer replaces the
> > hyphens in email addresses for some reason:
>
> >http://groups.google.de/group/cake-php/browse_thread/thread/d0debc94f...
>
> > Are there any new methods to fix this behaviour than writing an own
> > method which afterwards brings the hyphens back again? Will this
> > possibly be fixed in a future cakephp release?
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Sanitize:clean replacing hyphens in email addresses

2009-07-17 Thread Dr. Loboto

I personally validate data before save and output it on pages through h
() function. That's all. No modification of user data. With such
approach I do not see use for Sanitize::clean() at all.

On Jul 17, 6:34 pm, Bs  wrote:
> Hi,
>
> I'm using Sanitize::clean to sanitize my user data on a registration
> page after this tutorial:
>
> http://www.jonnyreeves.co.uk/2008/06/cakephp-activating-user-account-...
>
> Like mentioned in an much older thread, the sanitizer replaces the
> hyphens in email addresses for some reason:
>
> http://groups.google.de/group/cake-php/browse_thread/thread/d0debc94f...
>
> Are there any new methods to fix this behaviour than writing an own
> method which afterwards brings the hyphens back again? Will this
> possibly be fixed in a future cakephp release?
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Sanitize:clean replacing hyphens in email addresses

2009-07-17 Thread Bs

Hi,

I'm using Sanitize::clean to sanitize my user data on a registration
page after this tutorial:

http://www.jonnyreeves.co.uk/2008/06/cakephp-activating-user-account-via-email/


Like mentioned in an much older thread, the sanitizer replaces the
hyphens in email addresses for some reason:

http://groups.google.de/group/cake-php/browse_thread/thread/d0debc94ff47127a/141700323200a5c9?lnk=gst&q=sanitize+problem+email#141700323200a5c9


Are there any new methods to fix this behaviour than writing an own
method which afterwards brings the hyphens back again? Will this
possibly be fixed in a future cakephp release?

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---