pck-update: infofile.create(): quote all the elements of SPEC_SOURCE to avoid problems when the URL contains the letter '&'

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-10-16 21:44:17 +02:00
parent 58cae7acea
commit 5d684cd01a
2 changed files with 10 additions and 1 deletions

View File

@ -37,6 +37,12 @@ Changes in version 1.12.6
* Makefile - Davide Madrisan:
Make 'make dist' a bit more verbose.
+ bugfix
* plugins/pck-update.in - Davide Madrisan:
infofile.create(): quote all the elements of SPEC_SOURCE to avoid problems
when the URL contains the letter '&'.
(Problem pointed out by Silvan Calarco.)
-------------------------------------------------------------------------------
Changes in version 1.12.5

View File

@ -536,7 +536,10 @@ done))
SPEC_FILENAME=\"$SPEC_FILENAME\"
SPEC_URL=\"$SPEC_URL\"
SPEC_PATCH=(${SPEC_PATCH[*]})
SPEC_SOURCE=(${SPEC_SOURCE[*]})
SPEC_SOURCE=(\
$(for i in `seq 1 1 ${#SPEC_SOURCE[*]}`; do
echo -n "\"${SPEC_SOURCE[i-1]}\" "
done))
SPEC_LICENSE=(\
$(for i in `seq 1 1 ${#SPEC_LICENSE[*]}`; do
echo -n "\"${SPEC_LICENSE[i-1]}\" "