ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
4require_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}
An exception for terminatinating execution or to throw for unit testing.
static stripSlashesRecursive($a_data, $a_strip_html=true, $a_allow="")
Strip slashes from array and sub-arrays.