Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.217.117
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
vendor /
symfony /
form /
Delete
Unzip
Name
Size
Permission
Date
Action
ChoiceList
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Command
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Console
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
DependencyInjection
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Event
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Exception
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Extension
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Guess
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Resources
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Test
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Util
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
AbstractExtension.php
4.46
KB
-rwxrwxr-x
2026-03-13 14:59
AbstractRendererEngine.php
7.79
KB
-rwxrwxr-x
2026-03-13 14:59
AbstractType.php
1.3
KB
-rwxrwxr-x
2026-03-13 14:59
AbstractTypeExtension.php
970
B
-rwxrwxr-x
2026-03-13 14:59
Button.php
7.93
KB
-rwxrwxr-x
2026-03-13 14:59
ButtonBuilder.php
15.71
KB
-rwxrwxr-x
2026-03-13 14:59
ButtonTypeInterface.php
462
B
-rwxrwxr-x
2026-03-13 14:59
CHANGELOG.md
32.58
KB
-rwxrwxr-x
2026-03-13 14:59
CallbackTransformer.php
832
B
-rwxrwxr-x
2026-03-13 14:59
ClearableErrorsInterface.php
648
B
-rwxrwxr-x
2026-03-13 14:59
ClickableInterface.php
501
B
-rwxrwxr-x
2026-03-13 14:59
DataAccessorInterface.php
1.57
KB
-rwxrwxr-x
2026-03-13 14:59
DataMapperInterface.php
2.47
KB
-rwxrwxr-x
2026-03-13 14:59
DataTransformerInterface.php
3.89
KB
-rwxrwxr-x
2026-03-13 14:59
FileUploadError.php
338
B
-rwxrwxr-x
2026-03-13 14:59
Form.php
36.11
KB
-rwxrwxr-x
2026-03-13 14:59
FormBuilder.php
6.85
KB
-rwxrwxr-x
2026-03-13 14:59
FormBuilderInterface.php
1.86
KB
-rwxrwxr-x
2026-03-13 14:59
FormConfigBuilder.php
18.16
KB
-rwxrwxr-x
2026-03-13 14:59
FormConfigBuilderInterface.php
7.15
KB
-rwxrwxr-x
2026-03-13 14:59
FormConfigInterface.php
5.13
KB
-rwxrwxr-x
2026-03-13 14:59
FormError.php
3.14
KB
-rwxrwxr-x
2026-03-13 14:59
FormErrorIterator.php
7.39
KB
-rwxrwxr-x
2026-03-13 14:59
FormEvent.php
1.05
KB
-rwxrwxr-x
2026-03-13 14:59
FormEvents.php
4.02
KB
-rwxrwxr-x
2026-03-13 14:59
FormExtensionInterface.php
1.4
KB
-rwxrwxr-x
2026-03-13 14:59
FormFactory.php
3.76
KB
-rwxrwxr-x
2026-03-13 14:59
FormFactoryBuilder.php
3.85
KB
-rwxrwxr-x
2026-03-13 14:59
FormFactoryBuilderInterface.php
2.35
KB
-rwxrwxr-x
2026-03-13 14:59
FormFactoryInterface.php
3.06
KB
-rwxrwxr-x
2026-03-13 14:59
FormInterface.php
9.26
KB
-rwxrwxr-x
2026-03-13 14:59
FormRegistry.php
4.57
KB
-rwxrwxr-x
2026-03-13 14:59
FormRegistryInterface.php
1.13
KB
-rwxrwxr-x
2026-03-13 14:59
FormRenderer.php
11.84
KB
-rwxrwxr-x
2026-03-13 14:59
FormRendererEngineInterface.php
6.11
KB
-rwxrwxr-x
2026-03-13 14:59
FormRendererInterface.php
3
KB
-rwxrwxr-x
2026-03-13 14:59
FormTypeExtensionInterface.php
1.71
KB
-rwxrwxr-x
2026-03-13 14:59
FormTypeGuesserChain.php
2.55
KB
-rwxrwxr-x
2026-03-13 14:59
FormTypeGuesserInterface.php
1.09
KB
-rwxrwxr-x
2026-03-13 14:59
FormTypeInterface.php
2.89
KB
-rwxrwxr-x
2026-03-13 14:59
FormView.php
3.46
KB
-rwxrwxr-x
2026-03-13 14:59
Forms.php
2.73
KB
-rwxrwxr-x
2026-03-13 14:59
LICENSE
1.04
KB
-rwxrwxr-x
2026-03-13 14:59
NativeRequestHandler.php
7.33
KB
-rwxrwxr-x
2026-03-13 14:59
PreloadedExtension.php
1.97
KB
-rwxrwxr-x
2026-03-13 14:59
README.md
483
B
-rwxrwxr-x
2026-03-13 14:59
RequestHandlerInterface.php
705
B
-rwxrwxr-x
2026-03-13 14:59
ResolvedFormType.php
5.32
KB
-rwxrwxr-x
2026-03-13 14:59
ResolvedFormTypeFactory.php
649
B
-rwxrwxr-x
2026-03-13 14:59
ResolvedFormTypeFactoryInterface.php
1.15
KB
-rwxrwxr-x
2026-03-13 14:59
ResolvedFormTypeInterface.php
2.17
KB
-rwxrwxr-x
2026-03-13 14:59
ReversedTransformer.php
1008
B
-rwxrwxr-x
2026-03-13 14:59
SubmitButton.php
1.07
KB
-rwxrwxr-x
2026-03-13 14:59
SubmitButtonBuilder.php
592
B
-rwxrwxr-x
2026-03-13 14:59
SubmitButtonTypeInterface.php
474
B
-rwxrwxr-x
2026-03-13 14:59
composer.json
2.25
KB
-rwxrwxr-x
2026-03-13 14:59
Save
Rename
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form; use Symfony\Component\Form\Exception\UnexpectedTypeException; use Symfony\Component\Form\Util\FormUtil; use Symfony\Component\Form\Util\ServerParams; /** * A request handler using PHP super globals $_GET, $_POST and $_SERVER. * * @author Bernhard Schussek <bschussek@gmail.com> */ class NativeRequestHandler implements RequestHandlerInterface { private ServerParams $serverParams; /** * The allowed keys of the $_FILES array. */ private const FILE_KEYS = [ 'error', 'name', 'size', 'tmp_name', 'type', ]; public function __construct(?ServerParams $params = null) { $this->serverParams = $params ?? new ServerParams(); } /** * @return void * * @throws UnexpectedTypeException If the $request is not null */ public function handleRequest(FormInterface $form, mixed $request = null) { if (null !== $request) { throw new UnexpectedTypeException($request, 'null'); } $name = $form->getName(); $method = $form->getConfig()->getMethod(); if ($method !== self::getRequestMethod()) { return; } // For request methods that must not have a request body we fetch data // from the query string. Otherwise we look for data in the request body. if ('GET' === $method || 'HEAD' === $method || 'TRACE' === $method) { if ('' === $name) { $data = $_GET; } else { // Don't submit GET requests if the form's name does not exist // in the request if (!isset($_GET[$name])) { return; } $data = $_GET[$name]; } } else { // Mark the form with an error if the uploaded size was too large // This is done here and not in FormValidator because $_POST is // empty when that error occurs. Hence the form is never submitted. if ($this->serverParams->hasPostMaxSizeBeenExceeded()) { // Submit the form, but don't clear the default values $form->submit(null, false); $form->addError(new FormError( $form->getConfig()->getOption('upload_max_size_message')(), null, ['{{ max }}' => $this->serverParams->getNormalizedIniPostMaxSize()] )); return; } $fixedFiles = []; foreach ($_FILES as $fileKey => $file) { $fixedFiles[$fileKey] = self::stripEmptyFiles(self::fixPhpFilesArray($file)); } if ('' === $name) { $params = $_POST; $files = $fixedFiles; } elseif (\array_key_exists($name, $_POST) || \array_key_exists($name, $fixedFiles)) { $default = $form->getConfig()->getCompound() ? [] : null; $params = \array_key_exists($name, $_POST) ? $_POST[$name] : $default; $files = \array_key_exists($name, $fixedFiles) ? $fixedFiles[$name] : $default; } else { // Don't submit the form if it is not present in the request return; } if (\is_array($params) && \is_array($files)) { $data = FormUtil::mergeParamsAndFiles($params, $files); } else { $data = $params ?: $files; } } // Don't auto-submit the form unless at least one field is present. if ('' === $name && \count(array_intersect_key($data, $form->all())) <= 0) { return; } if (\is_array($data) && \array_key_exists('_method', $data) && $method === $data['_method'] && !$form->has('_method')) { unset($data['_method']); } $form->submit($data, 'PATCH' !== $method); } public function isFileUpload(mixed $data): bool { // POST data will always be strings or arrays of strings. Thus, we can be sure // that the submitted data is a file upload if the "error" value is an integer // (this value must have been injected by PHP itself). return \is_array($data) && isset($data['error']) && \is_int($data['error']); } public function getUploadFileError(mixed $data): ?int { if (!\is_array($data)) { return null; } if (!isset($data['error'])) { return null; } if (!\is_int($data['error'])) { return null; } if (\UPLOAD_ERR_OK === $data['error']) { return null; } return $data['error']; } private static function getRequestMethod(): string { $method = isset($_SERVER['REQUEST_METHOD']) ? strtoupper($_SERVER['REQUEST_METHOD']) : 'GET'; if ('POST' === $method && isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) { $method = strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']); } return $method; } /** * Fixes a malformed PHP $_FILES array. * * PHP has a bug that the format of the $_FILES array differs, depending on * whether the uploaded file fields had normal field names or array-like * field names ("normal" vs. "parent[child]"). * * This method fixes the array to look like the "normal" $_FILES array. * * It's safe to pass an already converted array, in which case this method * just returns the original array unmodified. * * This method is identical to {@link \Symfony\Component\HttpFoundation\FileBag::fixPhpFilesArray} * and should be kept as such in order to port fixes quickly and easily. */ private static function fixPhpFilesArray(mixed $data): mixed { if (!\is_array($data)) { return $data; } // Remove extra key added by PHP 8.1. unset($data['full_path']); $keys = array_keys($data); sort($keys); if (self::FILE_KEYS !== $keys || !isset($data['name']) || !\is_array($data['name'])) { return $data; } $files = $data; foreach (self::FILE_KEYS as $k) { unset($files[$k]); } foreach ($data['name'] as $key => $name) { $files[$key] = self::fixPhpFilesArray([ 'error' => $data['error'][$key], 'name' => $name, 'type' => $data['type'][$key], 'tmp_name' => $data['tmp_name'][$key], 'size' => $data['size'][$key], ]); } return $files; } private static function stripEmptyFiles(mixed $data): mixed { if (!\is_array($data)) { return $data; } $keys = array_keys($data); sort($keys); if (self::FILE_KEYS === $keys) { if (\UPLOAD_ERR_NO_FILE === $data['error']) { return null; } return $data; } foreach ($data as $key => $value) { $data[$key] = self::stripEmptyFiles($value); } return $data; } }