Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
cd96cace
Commit
cd96cace
authored
Sep 09, 2019
by
Francesc Guasch
Browse files
refactor(backend): remove only if necessary
parent
3f669f4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Domain.pm
View file @
cd96cace
...
...
@@ -3496,7 +3496,9 @@ sub set_base_vm($self, %args) {
next
if
$vm_local
->
shared_storage
(
$vm
,
$path
);
confess
"
Error: file has non-valid characters
"
if
$file
=~
/[*;&'" ]/
;
my
(
$out
,
$err
);
eval
{
(
$out
,
$err
)
=
$vm
->
remove_file
(
$file
)
};
eval
{
(
$out
,
$err
)
=
$vm
->
remove_file
(
$file
)
if
$vm
->
file_exists
(
$file
);
};
$err
=
$@
if
!
$err
&&
$@
;
warn
$err
if
$err
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment