Fix: bug #26929 : les fichiers contenant le signe + dans le nom ne peuvent être téléchargés
This commit is contained in:
parent
049a5cf76a
commit
49253626d2
@ -28,9 +28,11 @@
|
|||||||
* document.php?modulepart=repfichierconcerne&file=pathrelatifdufichier
|
* document.php?modulepart=repfichierconcerne&file=pathrelatifdufichier
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$original_file = urldecode($_GET["file"]);
|
// Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP).
|
||||||
$modulepart = urldecode($_GET["modulepart"]);
|
$action = isset($_GET["action"])?$_GET["action"]:'';
|
||||||
$type = isset($_GET["type"]) ? urldecode($_GET["type"]) : '';
|
$original_file = isset($_GET["file"])?$_GET["file"]:'';
|
||||||
|
$modulepart = isset($_GET["modulepart"])?$_GET["modulepart"]:'';
|
||||||
|
$urlsource = isset($_GET["urlsource"])?$_GET["urlsource"]:'';
|
||||||
|
|
||||||
// Define if we need master or master+main
|
// Define if we need master or master+main
|
||||||
$needmasteronly=false;
|
$needmasteronly=false;
|
||||||
@ -63,13 +65,6 @@ require_once(DOL_DOCUMENT_ROOT.'/lib/files.lib.php');
|
|||||||
// C'est un wrapper, donc header vierge
|
// C'est un wrapper, donc header vierge
|
||||||
function llxHeader() { }
|
function llxHeader() { }
|
||||||
|
|
||||||
// Default encoding for HTTP output if no encoding can be found for file to download
|
|
||||||
//$encoding='ISO-8859-1';
|
|
||||||
|
|
||||||
$action = $_GET["action"];
|
|
||||||
$original_file = urldecode($_GET["file"]);
|
|
||||||
$modulepart = urldecode($_GET["modulepart"]);
|
|
||||||
$urlsource = urldecode($_GET["urlsource"]);
|
|
||||||
|
|
||||||
// Define mime type
|
// Define mime type
|
||||||
$type = 'application/octet-stream';
|
$type = 'application/octet-stream';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user