fix wrong request get
This commit is contained in:
parent
7f4aa6daa5
commit
581b81f1b2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue