This commit is contained in:
2020-11-17 18:39:14 +08:00
parent 92af5482c7
commit 37a668c2d8
+1 -1
View File
@@ -47,7 +47,7 @@ if (!function_exists('isUrl')) {
function isUrl($url, $get_info = true)
{
try {
$queryMatch = '/((http[s]?):\/\/)?(([\w-_]+\.)+\w+(:\d+)?)(\/.*)?/';
$queryMatch = '/((http[s]?):\/\/)?(([\w-\_]+\.)+\w+(:\d+)?)(\/.*)?/';
if (!preg_match($queryMatch, $url, $outPut)) {
return false;
}