I saw various comments everywhere, some say that the zend framework will automatically sanitize messages / data, but others say that it is not.
What a deal? I saw that doing this in pre-cast using foreach on getParams is the fastest way, but does anyone have any suggestions?
Probably a deal about Zend_Controller_Requestand Zend_Db. Query data is often placed in the database.
Zend_Controller_Request
Zend_Db
The request object fails. You can force it to do this with filters, form filters, or, for example, using the reflection technique described here:
Zend_Db , ORM, , PDO.
. , , , , . $_GET['foo'] ? .
$_GET['foo']
, ActionHelper .
, .
. - foreach array_map , :
foreach
array_map
$_POST = array_map('mysql_real_escape_string', $_POST);
Ideally, although you should consider each variable in each case. Personally, I use a lot of PHP filter_varfor filtering and disinfection.
filter_var
Source: https://habr.com/ru/post/1772840/More articles:NSMenuItem A name that changes over time. - objective-cIs this method correct for storing HBase data? - serializationHow to implement PayPal Express Checkout in ASP.NET? - asp.netIs it possible to show the annotation when the map is loaded in a single point? - mapkitiOS SDK4.0 AVFoundation! - xcodeHow to prevent slash using regex? - phpC # - FTP Validation / Testing Server - c #Unexpected results from OpenMP on i7 and Xeon - cCreating a domain name check - c #XAML Based Viewer for ASP.NET MVC - asp.netAll Articles