fix wrong request get

This commit is contained in:
msquare 2017-07-28 20:33:14 +02:00
parent 7f4aa6daa5
commit 581b81f1b2
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ function strip_request_item_nl($name, $default_value = null)
{ {
$request = request(); $request = request();
if ($request->has($name)) { if ($request->has($name)) {
return preg_replace("/([^\p{L}\p{S}\p{P}\p{Z}\p{N}+\n]{1,})/ui", '', strip_tags($request->get($name))); return preg_replace("/([^\p{L}\p{S}\p{P}\p{Z}\p{N}+\n]{1,})/ui", '', strip_tags($request->input($name)));
} }
return $default_value; return $default_value;
} }