From ba535deec07010c9bbc67562342c83477d3b973d Mon Sep 17 00:00:00 2001 From: HKLCF Date: Sat, 19 May 2018 23:20:05 +0800 Subject: [PATCH] Bug fix fix regular expression error --- mediafire.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediafire.php b/mediafire.php index 0f86528..6d14e89 100644 --- a/mediafire.php +++ b/mediafire.php @@ -13,7 +13,7 @@ if(empty($url)) { $url = 'http://www.mediafire.com/file/8x5ol3r8wpb477a/small.mp4'; // sample link } if($url) { - preg_match('@^(?:http?://)?([^/]+)@i', $url, $matches); + preg_match('@^(?:http.?://)?([^/]+)@i', $url, $matches); $host = $matches[1]; if($host != $support_domain) { echo 'Please input a valid mediafire url.';