ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilFormSubmitRecursiveSlashesStripper.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/Form/interfaces/interface.ilFormValuesManipulator.php';
5 
13 {
18  public function manipulateFormInputValues($inputValues)
19  {
20  return $inputValues;
21  }
22 
28  public function manipulateFormSubmitValues($submitValues)
29  {
30  foreach($submitValues as $identifier => $value)
31  {
32  if( is_object($value) )
33  {
34  // post submit does not support objects, so when
35  // object building happened, sanitizing did also
36  continue;
37  }
38 
39  $submitValues[$identifier] = ilUtil::stripSlashesRecursive($value);
40  }
41 
42  return $submitValues;
43  }
44 }
static stripSlashesRecursive($a_data, $a_strip_html=true, $a_allow="")
Strip slashes from array and sub-arrays.