X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fclavette_www.git;a=blobdiff_plain;f=www%2Fplugins-dist%2Fsvp%2Fteleporter%2Fhttp.php;h=3da9589231db08880f4024336c122f5a6e3b3460;hp=02fc3f64eba75f84c9262897c6b9c37462762624;hb=cc641eb476987612f6d6df1a5417c1c5582a8ab8;hpb=7d84a490677fb716a1fd4df260f8eab35f6a8506 diff --git a/www/plugins-dist/svp/teleporter/http.php b/www/plugins-dist/svp/teleporter/http.php index 02fc3f6..3da9589 100644 --- a/www/plugins-dist/svp/teleporter/http.php +++ b/www/plugins-dist/svp/teleporter/http.php @@ -108,8 +108,9 @@ function teleporter_http_recuperer_source($source,$dest_tmp){ $dest_tmp = preg_replace(";\.[\w]{2,3}$;i","",$dest_tmp).".$extension"; + if (!defined('_SVP_PAQUET_MAX_SIZE')) define('_SVP_PAQUET_MAX_SIZE', 67108864); // 64Mo include_spip('inc/distant'); - $dest_tmp = copie_locale($source,'force',$dest_tmp); + $dest_tmp = copie_locale($source,'force',$dest_tmp,_SVP_PAQUET_MAX_SIZE); if (!$dest_tmp OR !file_exists($dest_tmp = _DIR_RACINE . $dest_tmp)) { spip_log("Chargement impossible de la source $source","teleport"._LOG_ERREUR);