mirror of
https://github.com/tgorordo/smithy.git
synced 2026-06-05 16:22:15 -07:00
allow source inspection of cgi script
This commit is contained in:
parent
7a30e0a85d
commit
3e56cbfa18
1 changed files with 0 additions and 3 deletions
|
|
@ -3,12 +3,9 @@
|
|||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
if [[ "$QUERY_STRING" == "source" ]]; then
|
||||
|
||||
echo "Content-Type: text/plain"
|
||||
echo
|
||||
echo "<pre>"
|
||||
sed 's/&/\&/g; s/</\</g; s/>/\>/g' "$0"
|
||||
echo "</pre>"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue