Prevent globbing in header fields
This commit is contained in:
parent
b4a7f03bb8
commit
36e23424b1
@ -1,13 +1,15 @@
|
||||
#!/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 "$@"
|
||||
if [ $? -eq 0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
set -f
|
||||
set $REQUEST_FIELDS
|
||||
set +f
|
||||
while [[ $# -gt 0 ]]; do
|
||||
length="$1"
|
||||
key="$2"
|
||||
@ -75,5 +77,4 @@ EOF
|
||||
exit 0
|
||||
fi
|
||||
|
||||
./handle_404.sh $@
|
||||
exit $?
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user