From 5df690f9bb6384309f02489d78313c9f40bf71f5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 22 Mar 2020 17:29:15 +0100 Subject: [PATCH] Fix phpcs --- htdocs/website/samples/wrapper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/website/samples/wrapper.php b/htdocs/website/samples/wrapper.php index 8615d2db803..24d32bdf281 100644 --- a/htdocs/website/samples/wrapper.php +++ b/htdocs/website/samples/wrapper.php @@ -71,10 +71,10 @@ if (GETPOSTISSET('type')) $type=GETPOST('type', 'alpha'); else $type=dol_mimetype($original_file); // Security: Delete string ../ into $original_file -$original_file=str_replace("../","/", $original_file); +$original_file = str_replace("../", "/", $original_file); // Cache or not -if (GETPOST("cache",'none') || image_format_supported($original_file) >= 0) +if (GETPOST("cache", 'none') || image_format_supported($original_file) >= 0) { // Important: Following code is to avoid page request by browser and PHP CPU at // each Dolibarr page access. @@ -257,4 +257,4 @@ else readfile($fullpath_original_file_osencoded); } if (is_object($db)) $db->close(); -// END PHP ?> +// END PHP