FIX Yogosha report 4426 (backport)
This commit is contained in:
parent
2ff633a89f
commit
be318f679b
@ -1259,7 +1259,8 @@ class FormFile
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print dol_trunc($file['name'], 200);
|
$filenametoshow = preg_replace('/\.noexe$/', '', $file['name']);
|
||||||
|
print dol_escape_htmltag(dol_trunc($filenametoshow, 200));
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
// Preview link
|
// Preview link
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2008-2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2008-2020 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -127,7 +127,7 @@ if ($action == 'update')
|
|||||||
|
|
||||||
$oldlabel=GETPOST('urlfile', 'alpha');
|
$oldlabel=GETPOST('urlfile', 'alpha');
|
||||||
$newlabel=GETPOST('label', 'alpha');
|
$newlabel=GETPOST('label', 'alpha');
|
||||||
$shareenabled = GETPOST('shareenabled', 'alpha');
|
$shareenabled = dol_sanitizeFileName(GETPOST('label', 'alpha'));
|
||||||
|
|
||||||
//$db->begin();
|
//$db->begin();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user