改名
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ if (!function_exists('isUrl')) {
|
|||||||
function isUrl($url, $get_info = true)
|
function isUrl($url, $get_info = true)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$queryMatch = '/((http[s]?):\/\/)?(([\w-\_]+\.)+\w+(:\d+)?)(\/.*)?/';
|
$queryMatch = '/((http[s]?):\/\/)?(([\w\-\_]+\.)+\w+(:\d+)?)(\/.*)?/';
|
||||||
if (!preg_match($queryMatch, $url, $outPut)) {
|
if (!preg_match($queryMatch, $url, $outPut)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user