Skip to content
Permalink
Browse files Browse the repository at this point in the history
https://github.com/WWBN/AVideo/issues/3117
If fileURI is not a MP4 file return false
  • Loading branch information
daniel authored and daniel committed May 22, 2020
1 parent 218c98c commit ecc5f40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions objects/import.json.php
Expand Up @@ -9,6 +9,10 @@
return false;
}

if(!preg_match("/.*\\.mp4$/i", $_POST['fileURI'])){
return false;
}

$obj = new stdClass();

$obj->error = true;
Expand Down

0 comments on commit ecc5f40

Please sign in to comment.