mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Double quotes to prevent bash apocalypse
This commit is contained in:
parent
1d2e4e78f2
commit
f769c40f96
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ _acceptable_path_to_delete() {
|
||||||
|
|
||||||
# Use realpath to normalize the path ..
|
# Use realpath to normalize the path ..
|
||||||
# i.e convert ///foo//bar//..///baz//// to /foo/baz
|
# i.e convert ///foo//bar//..///baz//// to /foo/baz
|
||||||
file=$(realpath --no-symlinks $file)
|
file=$(realpath --no-symlinks "$file")
|
||||||
if [ -z "$file" ] || grep -q -x -F "$file" <<< "$forbidden_paths"; then
|
if [ -z "$file" ] || grep -q -x -F "$file" <<< "$forbidden_paths"; then
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue