Function mr_requestCleanup
Request cleanup function. Request data is allways tainted and must be filtered. Pass the array to cleanup using several options. Emulates array_walk_recursive().
Package: Plugin\ModRewrite
Copyright: www.polycoder.de
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Stefan Seifarth / stese
Author: Murat Purc murat@purc.de
Located at plugins/mod_rewrite/includes/functions.mod_rewrite.php
Copyright: www.polycoder.de
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Stefan Seifarth / stese
Author: Murat Purc murat@purc.de
Located at plugins/mod_rewrite/includes/functions.mod_rewrite.php
mixed |
& $data |
Data to cleanup |
array |
$options = NULL |
<p>Default options array, provides only 'filter' key with several filter functions which are to execute as follows:</p> <pre><span class="php-var">$options</span>[<span class="php-quote">'filter'</span>] = <span class="php-keyword1">array</span>(<span class="php-quote">'trim'</span>, <span class="php-quote">'myFilterFunc'</span>);</pre> <pre><code> If no filter functions are set, 'trim', 'strip_tags' and 'stripslashes' will be used by default. A userdefined function must accept the value as a parameter and must return the filtered parameter, e. g. </code></pre> <pre><span class="php-keyword1">function</span> myFilter(<span class="php-var">$data</span>) { <span class="php-comment">// do what you want with the data, e. g. cleanup of xss content</span> <span class="php-keyword1">return</span> <span class="php-var">$data</span>; }</pre> |
mixed
|
Cleaned data |