mirror of
https://github.com/hklcf/MediaFire-Stream-API
synced 2026-01-13 13:24:29 -08:00
Bug fix
fix regular expression error
This commit is contained in:
@@ -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.';
|
||||
|
||||
Reference in New Issue
Block a user