FIX #yogosha4426
This commit is contained in:
parent
d7aa376c3c
commit
d0c02f3714
@ -1207,7 +1207,7 @@ class FormFile
|
||||
$editline = 1;
|
||||
} else {
|
||||
$filenametoshow = preg_replace('/\.noexe$/', '', $file['name']);
|
||||
print dol_trunc($filenametoshow, 200);
|
||||
print dol_escape_htmltag(dol_trunc($filenametoshow, 200));
|
||||
print '</a>';
|
||||
}
|
||||
// Preview link
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?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
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -126,7 +126,7 @@ if ($action == 'update')
|
||||
$error = 0;
|
||||
|
||||
$oldlabel = GETPOST('urlfile', 'alpha');
|
||||
$newlabel = GETPOST('label', 'alpha');
|
||||
$newlabel = dol_sanitizeFileName(GETPOST('label', 'alpha'));
|
||||
$shareenabled = GETPOST('shareenabled', 'alpha');
|
||||
|
||||
//$db->begin();
|
||||
|
||||
@ -127,7 +127,6 @@ if ($action == 'confirm_deletefile')
|
||||
|
||||
$upload_dir = $conf->ecm->dir_output.($relativepath ? '/'.$relativepath : '');
|
||||
$file = $upload_dir."/".GETPOST('urlfile', 'alpha');
|
||||
|
||||
$ret = dol_delete_file($file); // This include also the delete from file index in database.
|
||||
if ($ret)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user