Now passing get_dump and post_dump to PHP/Python

merge-requests/2/head
Dominika 2020-05-29 09:23:42 +02:00
parent 73857c46ab
commit 09008f78a2
1 changed files with 2 additions and 2 deletions

View File

@ -5,14 +5,14 @@ get_mime ${r[uri]}
if [[ ${cfg[php_enabled]} == true && ${r[uri]} =~ ".php" ]]; then
temp=$(mktemp)
php "${r[uri]}" > $temp
php "${r[uri]}" "$(get_dump)" "$(post_dump)" > $temp
[[ ${r[headers]} != '' ]] && printf "${r[headers]}\r\n\r\n" || printf "\r\n"
cat $temp
rm $temp
elif [[ ${cfg[python_enabled]} == true && ${r[uri]} =~ ".py" ]]; then
temp=$(mktemp)
python "${r[uri]}" > $temp
python "${r[uri]}" "$(get_dump)" "$(post_dump)" > $temp
[[ ${r[headers]} != '' ]] && printf "${r[headers]}\r\n\r\n" || printf "\r\n"
cat $temp
rm $temp