Permalink
Browse files

FIX Docs for DataList::filter()

The docs incorrectly stated that DataList::filter() needed escaped input, but this isn't true as the ExactMatch filter (and others) escape the values for you.

Anyone following that advice would have double escaped arguments
  • Loading branch information...
1 parent 346990c commit ff5f60718a4f2dcc0be01be77e19c1a7e207ab66 @dhensby dhensby committed Apr 25, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 model/DataList.php
View
@@ -310,7 +310,7 @@ public function sort() {
*
* @todo extract the sql from $customQuery into a SQLGenerator class
*
- * @param string|array Escaped SQL statement. If passed as array, all keys and values are assumed to be escaped.
+ * @param string|array Key and Value pairs, the array values are automatically sanitised for the DB quesry
* @return DataList
*/
public function filter() {

0 comments on commit ff5f607

Please sign in to comment.