Fix hash collisions on tmp keys

This commit is contained in:
zawz 2020-11-06 18:23:57 +01:00
parent b9ce88b502
commit e64e378671

View file

@ -26,8 +26,8 @@ sanitize_paths()
# $1 = file # $1 = file
getpath() { getpath() {
if [ -n "$REMOTE_ADDR" ] if [ -n "$ZPASS_REMOTE_ADDR" ]
then echo "$REMOTE_PORT:$REMOTE_ADDR:$file" then echo "$ZPASS_REMOTE_PORT:$ZPASS_REMOTE_ADDR:$file"
else readlink -f "$file" else readlink -f "$file"
fi fi
} }