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.';