2
0
forked from Wavyzz/dolibarr

Prepare code to have photo_resize used by other modules

This commit is contained in:
Laurent Destailleur
2010-11-07 12:33:32 +00:00
parent f20a0e895c
commit f8674ae32f
5 changed files with 39 additions and 19 deletions

View File

@@ -101,6 +101,8 @@ $original_file = str_replace("../","/", $original_file);
// find the subdirectory name as the reference
$refname=basename(dirname($original_file)."/");
// Security check
if (empty($modulepart)) accessforbidden('Bad value for modulepart');
$accessallowed=0;
$sqlprotectagainstexternals='';
if ($modulepart)