mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-10 07:21:04 +01:00
* Filemanager: fixed not working rename of file, if path contains a # or ?
This commit is contained in:
parent
b2e032245a
commit
3728867bee
@ -988,7 +988,7 @@ function force_download(_action, _senders)
|
|||||||
{
|
{
|
||||||
if ($name == 'name')
|
if ($name == 'name')
|
||||||
{
|
{
|
||||||
$to = egw_vfs::concat($content['dir'],$content['name']);
|
$to = egw_vfs::concat(egw_vfs::dirname($path),$content['name']);
|
||||||
if (file_exists(egw_vfs::PREFIX.$to) && $content['confirm_overwrite'] !== $to)
|
if (file_exists(egw_vfs::PREFIX.$to) && $content['confirm_overwrite'] !== $to)
|
||||||
{
|
{
|
||||||
$tpl->set_validation_error('name',lang("There's already a file with that name!").'<br />'.
|
$tpl->set_validation_error('name',lang("There's already a file with that name!").'<br />'.
|
||||||
@ -1132,7 +1132,7 @@ function force_download(_action, _senders)
|
|||||||
$readonlys['perms['.$name.']'] = true;
|
$readonlys['perms['.$name.']'] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$readonlys['name'] = $path == '/' || !egw_vfs::is_writable($content['dir']);
|
$readonlys['name'] = $path == '/' || !egw_vfs::is_writable(egw_vfs::dirname($path));
|
||||||
$readonlys['comment'] = !egw_vfs::is_writable($path);
|
$readonlys['comment'] = !egw_vfs::is_writable($path);
|
||||||
$readonlys['tabs']['preview'] = $readonlys['tabs']['perms'] = $content['is_link'];
|
$readonlys['tabs']['preview'] = $readonlys['tabs']['perms'] = $content['is_link'];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user