FIX Bad preview on scroping when special file names
This commit is contained in:
parent
793f1318de
commit
1fc292fa56
@ -311,7 +311,7 @@ llxHeader($head, $langs->trans("Image"), '', '', 0, 0, array('/includes/jquery/p
|
|||||||
|
|
||||||
print load_fiche_titre($langs->trans("ImageEditor"));
|
print load_fiche_titre($langs->trans("ImageEditor"));
|
||||||
|
|
||||||
$infoarray=dol_getImageSize($dir."/".GETPOST("file"));
|
$infoarray=dol_getImageSize($dir."/".GETPOST("file",'alpha'));
|
||||||
$height=$infoarray['height'];
|
$height=$infoarray['height'];
|
||||||
$width=$infoarray['width'];
|
$width=$infoarray['width'];
|
||||||
print $langs->trans("CurrentInformationOnImage").': ';
|
print $langs->trans("CurrentInformationOnImage").': ';
|
||||||
@ -373,7 +373,7 @@ if (! empty($conf->use_javascript_ajax))
|
|||||||
print $langs->trans("DefineNewAreaToPick").'...<br>';
|
print $langs->trans("DefineNewAreaToPick").'...<br>';
|
||||||
print '<br><div class="center">';
|
print '<br><div class="center">';
|
||||||
print '<div style="border: 1px solid #888888; width: '.$widthforcrop.'px;">';
|
print '<div style="border: 1px solid #888888; width: '.$widthforcrop.'px;">';
|
||||||
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart='.$modulepart.'&entity='.$object->entity.'&file='.$original_file.'" alt="" id="cropbox" width="'.$widthforcrop.'px"/>';
|
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart='.$modulepart.'&entity='.$object->entity.'&file='.urlencode($original_file).'" alt="" id="cropbox" width="'.$widthforcrop.'px"/>';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print '</div><br>';
|
print '</div><br>';
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$id.'" method="POST">
|
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$id.'" method="POST">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user