Juan Carlos Raña il y a 15 ans
Parent
commit
80afb795f0
2 fichiers modifiés avec 274 ajouts et 233 suppressions
  1. 2 2
      main/inc/lib/document.lib.php
  2. 272 231
      main/inc/lib/main_api.lib.php

+ 2 - 2
main/inc/lib/document.lib.php

@@ -295,11 +295,11 @@ class DocumentManager {
 	 * @param string $name
 	 * @return false if file doesn't exist, true if stream succeeded
 	 */
-	public static function file_send_for_download ($full_file_name, $forced = false, $name = '') {
+	public static function file_send_for_download($full_file_name, $forced = false, $name = '') {
 		if (!is_file($full_file_name)) {
 			return false;
 		}
-		$filename = ($name == '') ? basename($full_file_name) : $name;
+		$filename = ($name == '') ? basename($full_file_name) : replace_dangerous_char($name);
 		$len = filesize($full_file_name);
 
 		if ($forced) {

Fichier diff supprimé car celui-ci est trop grand
+ 272 - 231
main/inc/lib/main_api.lib.php


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff