3486 |
16 Nov 09 |
gregory |
# Only allow http:// for referenced files |
3486 |
16 Nov 09 |
gregory |
2 |
generate_name |
3486 |
16 Nov 09 |
gregory |
3 |
echo -e "Name\tUniformResourceIdentifier" > $A |
3486 |
16 Nov 09 |
gregory |
4 |
echo -e "$name\tfile:///etc/passwd" >> $A |
3486 |
16 Nov 09 |
gregory |
5 |
if [ -e $B ]; then rm $B; fi |
3486 |
16 Nov 09 |
gregory |
6 |
curlit "-s -o $B -T $A" "$resource/files?$auth" |
3486 |
16 Nov 09 |
gregory |
7 |
if [ ! -e $B ]; then |
3486 |
16 Nov 09 |
gregory |
8 |
fail "$test" "Check $A and $B" |
3486 |
16 Nov 09 |
gregory |
9 |
fi |
3486 |
16 Nov 09 |
gregory |
# $Id$ |