Skip to content

Commit

Permalink
FIX: use param for http links
Browse files Browse the repository at this point in the history
  • Loading branch information
altatof committed Jan 25, 2017
1 parent 983efdd commit d65cb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/html.formfile.class.php
Expand Up @@ -604,7 +604,7 @@ function showdocuments($modulepart,$modulesubdir,$filedir,$urlsource,$genallowed

// Show file name with link to download
$out.= '<td class="nowrap">';
$out.= '<a data-ajax="false" href="'.$documenturl.'?modulepart='.$modulepart.'&amp;file='.urlencode($relativepath).'"';
$out.= '<a data-ajax="false" href="'.$documenturl.'?modulepart='.$modulepart.'&amp;file='.urlencode($relativepath).($param?'&'.$param:'').'"';
$mime=dol_mimetype($relativepath,'',0);
if (preg_match('/text/',$mime)) $out.= ' target="_blank"';
$out.= ' target="_blank">';
Expand Down

0 comments on commit d65cb29

Please sign in to comment.