diff --git a/crmeb/app/common.php b/crmeb/app/common.php index ac7806836..8d8575b0d 100644 --- a/crmeb/app/common.php +++ b/crmeb/app/common.php @@ -682,10 +682,10 @@ if (!function_exists('get_file_link')) { if (!$link) { return ''; } - if (strstr('http', $link) === false) { - return app()->request->domain() . $link; - } else { + if (substr($link, 0, 4) === "http" || substr($link, 0, 2) === "//") { return $link; + } else { + return app()->request->domain() . $link; } } }