mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #642 from YunoHost/fix_ynh_secure_remove
Fix #635 on ynh_secure_remove
This commit is contained in:
commit
65e1bc2d8d
1 changed files with 4 additions and 4 deletions
|
@ -392,10 +392,10 @@ ynh_secure_remove () {
|
|||
/var/www \
|
||||
/home/yunohost.app"
|
||||
|
||||
if [[ -n "$2" ]]
|
||||
then
|
||||
echo "/!\ Packager ! You provided a second argument to ynh_secure_remove but it will be ignored... Use this helper with one argument at time." >&2
|
||||
fi
|
||||
if [ $# -ge 2 ]
|
||||
then
|
||||
echo "/!\ Packager ! You provided more than one argument to ynh_secure_remove but it will be ignored... Use this helper with one argument at time." >&2
|
||||
fi
|
||||
|
||||
if [[ "$forbidden_path" =~ "$file" \
|
||||
# Match all paths or subpaths in $forbidden_path
|
||||
|
|
Loading…
Add table
Reference in a new issue