ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
class.ilMultiFilesSubmitRecursiveSlashesStripper.php
Go to the documentation of this file.
1<?php
2
20
25{
29 protected $postVar = null;
30
34 public function getPostVar(): ?string
35 {
36 return $this->postVar;
37 }
38
42 public function setPostVar($postVar): void
43 {
44 $this->postVar = $postVar;
45 }
46
51 public function manipulateFormInputValues(array $inputValues): array
52 {
53 return $inputValues;
54 }
55
60 public function manipulateFormSubmitValues(array $submitValues): array
61 {
63 return $submitValues;
64 }
65
69 #[AllowSuperglobalWrite('strips slashes in $_FILES[postVar], because the inherited getInput() reads it back from there.', 12)]
70 protected function manipulateFileSubmitValues(): void
71 {
72 if ($_FILES) {
74 $_FILES[$this->getPostVar()]
75 );
76 }
77 }
78}
static stripSlashesRecursive($a_data, bool $a_strip_html=true, string $a_allow="")