Prevent globbing in header fields

This commit is contained in:
Koray Yanik 2022-03-23 23:52:03 +00:00
parent b4a7f03bb8
commit 36e23424b1
1 changed files with 4 additions and 3 deletions

View File

@ -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