stopped allowing ampersands in file names, added documentation lines.
[feisty_meow.git] / scripts / cgi / cgi_show_referer.sh
1 #!/bin/bash
2 echo "Content-type: text/plain"
3 echo ""
4 echo ""
5
6 export query=$(echo $QUERY_STRING | sed -e "s/^[^=][^=]*=\(.*\)$/\1/")
7 export referer=$(echo $HTTP_REFERER | sed -e "s/^\(.*\/\).*$/\1/")
8 echo "--------"
9 echo "query is $query"
10 echo ""
11 echo "referer is $referer"
12 echo "--------"
13
14 echo ""
15 echo ""
16 echo "env is\n\n $(env) "
17
18