fixing filename sanitation

This commit is contained in:
Louwrentius 2009-03-22 10:05:36 +00:00
parent 7b8d9672db
commit f0e67f8d61

View File

@ -908,13 +908,13 @@ download_item () {
then
#ITEM_ESCAPED=`echo "$ITEM" | sed s:\\ :\\\\\\\\\ :g`
ITEM_ESCAPED=`echo "$ITEM" | \
sed s/\\\//\\\\\\ /g | \
sed s/\\ /\\\\\\\\\\\\\\ /g | \
sed s/\\'/\\\\\\\\\\\\\\'/g | \
sed s/\&/\\\\\\\\\\\\\\&/g | \
sed s/\(/\\\\\\\\\\(/g | \
sed s/\)/\\\\\\\\\\)/g `
echo " ==+> $ITEM_ESCAPED"
scp -q $SSH_OPTS $SSH_KEY $USER@$SSH_SERVER:"$ITEM_ESCAPED" ./$PPSS_LOCAL_TMPDIR
log DEBUG "Exit code of remote transfer is $?"
else