Merge pull request #13060 from pnueda/patch-1

Update html.formfile.class.php
This commit is contained in:
Laurent Destailleur 2020-02-08 16:18:17 +01:00 committed by GitHub
commit c9f7dacda1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -859,7 +859,7 @@ class FormFile
if ($delallowed)
{
$tmpurlsource = preg_replace('/#[a-zA-Z0-9_]*$/', '', $urlsource);
$out .= '<a href="'.$tmpurlsource.(strpos($tmpurlsource, '?') ? '&amp;' : '?').'action=remove_file&amp;file='.urlencode($relativepath);
$out .= '<a href="'.$tmpurlsource.((strpos($tmpurlsource, '?') === false) ? '?' : '&amp;').'action=remove_file&amp;file='.urlencode($relativepath);
$out .= ($param ? '&amp;'.$param : '');
//$out.= '&modulepart='.$modulepart; // TODO obsolete ?
//$out.= '&urlsource='.urlencode($urlsource); // TODO obsolete ?