Tuesday, August 13, 2013

Re: consoleShell & Sanitize class

Sanitizing too harshly, or the way Sanitize was used in general, was usually a bad way of doing things.
Basically, you just need to always use h() in your output and you got everything you need.

ConsoleShell does not need a replacement. Its kinda silly to use it when you can have a whole PHPUnit test suite at your disposal.
Just write a simple test. Even if its just temporary. But if it's not this will also save you the trouble from retyping it again and again.
It was an overhead to maintain this shell as nobody really ever uses it.



Am Dienstag, 13. August 2013 12:31:45 UTC+2 schrieb Jason Bramley:
Hi,

I see from the 2.4.0-rc1 release notes that these two items are deprecated and will be removed in 3.x

Two questions come to mind:

1) Why?
2) What are the recommended replacements?

Thanks
Jason

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: