|
@@ -361,7 +361,7 @@ Plugin::addHook("rewrite", function ($requested){
|
|
|
if(!preg_match('/^media\/.*\/public\/.*/is', $requested)) throw new Exception("Media inexistant.");
|
|
|
$requested = substr($requested, 6);
|
|
|
$file = File::dir().$requested;
|
|
|
- $file = preg_replace('/\?v=[a-z0-9]*/i','',$file);
|
|
|
+ $file = preg_replace('/\?v=[a-z0-9\.]*/i','',$file);
|
|
|
$files = glob($file);
|
|
|
|
|
|
if(count($files) ==0){
|