ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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  if (is_object($value)) {
32  // post submit does not support objects, so when
33  // object building happened, sanitizing did also
34  continue;
35  }
36 
37  $submitValues[$identifier] = ilUtil::stripSlashesRecursive($value);
38  }
39 
40  return $submitValues;
41  }
42 }
static stripSlashesRecursive($a_data, $a_strip_html=true, $a_allow="")
Strip slashes from array and sub-arrays.