From 4cd07cb7c8ba4f35d2dc115c8b7e3b731899d062 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 2 Oct 2010 13:10:33 +0000 Subject: [PATCH] Remove REQUEST --- htdocs/document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/document.php b/htdocs/document.php index 448d27227b2..36087c4bfbd 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -90,7 +90,7 @@ if (preg_match('/\.tiff$/i',$original_file)) { $attachment = true; } // Calendar if (preg_match('/\.vcs$/i',$original_file)) { $attachment = true; } if (preg_match('/\.ics$/i',$original_file)) { $attachment = true; } -if ($_REQUEST["attachment"]) { $attachment = true; } +if (GETPOST("attachment")) { $attachment = true; } if (! empty($conf->global->MAIN_DISABLE_FORCE_SAVEAS)) $attachment=false; //print "XX".$attachment;exit;