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

@@ -60,6 +60,8 @@ else $type=dol_mimetype($original_file);
// Suppression de la chaine de caractere ../ dans $original_file
$original_file = str_replace("../","/", $original_file);
// Security check
if (empty($modulepart)) accessforbidden('Bad value for modulepart');
$accessallowed=0;
if ($modulepart)
{