mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-10 17:42:50 +00:00
update v5.2.0
This commit is contained in:
parent
46f18c23ee
commit
b0a7ce7e1e
@ -116,7 +116,7 @@ class Request extends \think\Request
|
||||
*/
|
||||
public function replaceWord($farr, $str)
|
||||
{
|
||||
if (parse_url($str, PHP_URL_HOST)) {
|
||||
if (filter_var($str, FILTER_VALIDATE_URL)) {
|
||||
$url = parse_url($str);
|
||||
$host = $url['scheme'] . '://' . $url['host'];
|
||||
$str = $host . preg_replace($farr, '', str_replace($host, '', $str));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user