Prevent globbing in header fields
This commit is contained in:
parent
b4a7f03bb8
commit
36e23424b1
@ -1,13 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "[$(date +%T)] GET $REQUEST_PATH_SANE ($REQUEST_PATH)" >> Get.log
|
echo "[$(date +%T)] GET $REQUEST_PATH_SANE ($REQUEST_PATH)" >> get.log
|
||||||
|
|
||||||
./handle_requests.sh "$@"
|
./handle_requests.sh "$@"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -f
|
||||||
set $REQUEST_FIELDS
|
set $REQUEST_FIELDS
|
||||||
|
set +f
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
length="$1"
|
length="$1"
|
||||||
key="$2"
|
key="$2"
|
||||||
@ -75,5 +77,4 @@ EOF
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./handle_404.sh $@
|
exit 1
|
||||||
exit $?
|
|
||||||
|
Loading…
Reference in New Issue
Block a user