comanage-dev - [comanage-dev] Sanitize:: filtering (CO-667)
Subject: COmanage Developers List
List archive
- From: Arlen Johnson <>
- To: comanage-dev <>
- Subject: [comanage-dev] Sanitize:: filtering (CO-667)
- Date: Thu, 09 Jul 2015 15:48:04 -0400
Unless anyone disagrees, I'm going to start using the php standard
filtering (see http://php.net/manual/en/book.filter.php) when we
need to add user generated output to the Views -- as part of that, I
can begin replacing the Sanitize:: filters when I run across them. This relates to ticket https://bugs.internet2.edu/jira/browse/CO-667 Currently, there are 414 references to "Sanitize::" inside app/ (480 if you include everything). The mappings from CakePHP Sanitize to php filters depend largely on the options passed to Sanitize, but a rough mapping is as follows:
There is also Sanitize::clean, but we're not using it in app/ If it is desired, I could march through all instances of Sanitize
(except Sanitize::escape) and replace them, rather than take a
piecemeal approach. I defer the Sanitize::escape to those of a
more back-end dev leaning. (-: Arlen |
- [comanage-dev] Sanitize:: filtering (CO-667), Arlen Johnson, 07/09/2015
- Re: [comanage-dev] Sanitize:: filtering (CO-667), Benn Oshrin, 07/10/2015
Archive powered by MHonArc 2.6.16.