X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Faction%2Fcharger_plugin.php;fp=www%2Fecrire%2Faction%2Fcharger_plugin.php;h=6f0fdd8f7d83aabcff52661771cbc1424a51d2d3;hp=0d9891db9af88a904423113548f874bcce2e07a0;hb=e99f0878011913365e49b30d90e496c24c301393;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed diff --git a/www/ecrire/action/charger_plugin.php b/www/ecrire/action/charger_plugin.php index 0d9891d..6f0fdd8 100644 --- a/www/ecrire/action/charger_plugin.php +++ b/www/ecrire/action/charger_plugin.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2011 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -88,7 +88,7 @@ function action_charger_plugin_dist() { if (preg_match(",^Content-Type:\s*application/zip$,Uims",$head)) $extension = "zip"; - elseif (preg_match(",^Content-Disposition:\s*attachment;\s*filename=(.*)$,Uims",$head,$m)){ + elseif (preg_match(',^Content-Disposition:\s*attachment;\s*filename="?([^"]+)"?$,Uims',$head,$m)){ $f = $m[1]; if (pathinfo($f, PATHINFO_EXTENSION)=="zip"){ $fichier = (_request('fichier')?