Browse Source

Rewrite : correctif mauvais trim de version (impact sur customiser)

idleman 2 years ago
parent
commit
9c71e826e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      common.php

+ 1 - 1
common.php

@@ -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){