diff --git a/files/www/freifunk/cgi-bin/status b/files/www/freifunk/cgi-bin/status index 5d357995..5311bdaa 100755 --- a/files/www/freifunk/cgi-bin/status +++ b/files/www/freifunk/cgi-bin/status @@ -1,6 +1,5 @@ #!/usr/bin/haserl -content-type: text/html - +<% echo -en "content-type: text/html\r\n\r\n" %>
diff --git a/files/www/lan/cgi-bin/home b/files/www/lan/cgi-bin/home index dcd1fc46..f46e8e24 100755 --- a/files/www/lan/cgi-bin/home +++ b/files/www/lan/cgi-bin/home @@ -1,7 +1,6 @@ #!/usr/bin/haserl -content-type: text/plain - <% +echo -en "content-type: text/plain\r\n\r\n" addr() { local addr="$(ip -$1 address show dev $2 2> /dev/null | tr '/' ' '| awk '/inet/{ printf("%s ", $2); }')" diff --git a/files/www/lan/cgi-bin/misc b/files/www/lan/cgi-bin/misc index 8e63a777..4f91e38b 100755 --- a/files/www/lan/cgi-bin/misc +++ b/files/www/lan/cgi-bin/misc @@ -1,7 +1,6 @@ #!/usr/bin/haserl -content-type: text/plain - <% +echo -en "content-type: text/plain\r\n\r\n" case $GET_func in reboot) diff --git a/files/www/lan/cgi-bin/network b/files/www/lan/cgi-bin/network index 02c91cb8..8632e50f 100755 --- a/files/www/lan/cgi-bin/network +++ b/files/www/lan/cgi-bin/network @@ -1,7 +1,7 @@ #!/usr/bin/haserl -content-type: text/plain - <% +echo -en "content-type: text/plain\r\n\r\n" + . /lib/functions.sh case "$GET_func" in diff --git a/files/www/lan/cgi-bin/password b/files/www/lan/cgi-bin/password index 01ec8c45..0b270244 100755 --- a/files/www/lan/cgi-bin/password +++ b/files/www/lan/cgi-bin/password @@ -1,7 +1,7 @@ #!/usr/bin/haserl -content-type: text/plain - <% +echo -en "content-type: text/plain\r\n\r\n" + pass1="$GET_pass1" pass2="$GET_pass2" diff --git a/files/www/lan/cgi-bin/settings b/files/www/lan/cgi-bin/settings index 5bc2dee8..321df182 100755 --- a/files/www/lan/cgi-bin/settings +++ b/files/www/lan/cgi-bin/settings @@ -1,7 +1,7 @@ #!/usr/bin/haserl -content-type: text/plain - <% +echo -en "content-type: text/plain\r\n\r\n" + . /lib/functions.sh case "$GET_func" in diff --git a/files/www/lan/cgi-bin/upgrade b/files/www/lan/cgi-bin/upgrade index bc9376d0..b8f96c78 100755 --- a/files/www/lan/cgi-bin/upgrade +++ b/files/www/lan/cgi-bin/upgrade @@ -1,7 +1,6 @@ #!/usr/bin/haserl --upload-dir=/tmp --upload-limit=12000 -content-type: text/plain - <% +echo -en "content-type: text/plain\r\n\r\n" case "${GET_func:-$POST_func}" in apply_firmware)