From 6efa1560b98434f3dc8beec7e682a91011072a80 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 25 Mar 2018 19:49:00 +0200 Subject: [PATCH] Fix wrapper to image barcode --- htdocs/viewimage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/viewimage.php b/htdocs/viewimage.php index 3e2b59ae404..ed4dd22e953 100644 --- a/htdocs/viewimage.php +++ b/htdocs/viewimage.php @@ -81,7 +81,7 @@ $entity=GETPOST('entity','int')?GETPOST('entity','int'):$conf->entity; // Security check if (empty($modulepart) && empty($hashp)) accessforbidden('Bad link. Bad value for parameter modulepart',0,0,1); -if (empty($original_file) && empty($hashp)) accessforbidden('Bad link. Missing identification to find file (original_file or hashp)',0,0,1); +if (empty($original_file) && empty($hashp) && $modulepart != 'barcode') accessforbidden('Bad link. Missing identification to find file (original_file or hashp)',0,0,1); if ($modulepart == 'fckeditor') $modulepart='medias'; // For backward compatibility