namespace Shopware\Recovery\Common\Middelware;
use Slim\Middleware;
use voku\helper\AntiXSS;
class XssMiddleware extends Middleware
{ public function call() { $env =
$this->app->
environment();
$env['slim.input_original'
] =
$env['slim.input'
];
$env['slim.input'
] =
$this->
parse($env['slim.input'
]);
$this->next->
call();
} private function parse(string
$input) { $output =
[];
if (\
function_exists('mb_parse_str'
) && !
isset($this->env
['slim.tests.ignore_multibyte'
])) { mb_parse_str($input,
$output);
}