mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix barcode viewimage regression on yogosha8628
This commit is contained in:
parent
9173eec8ac
commit
95c0e72956
|
|
@ -230,7 +230,7 @@ $original_file = str_replace('..\\', '/', $original_file);
|
|||
$refname = basename(dirname($original_file)."/");
|
||||
|
||||
// Check that file is allowed for view with viewimage.php
|
||||
if (!dolIsAllowedForPreview($original_file)) {
|
||||
if (!empty($original_file) && !dolIsAllowedForPreview($original_file)) {
|
||||
accessforbidden('This file is not qualified for preview', 0, 0, 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user