summaryrefslogtreecommitdiff
path: root/files/common/www/service/cgi-bin
diff options
context:
space:
mode:
authorKatze Miau <miaukatzemiau@priveasy.de>2011-12-20 16:57:45 (GMT)
committerKatze Miau <miaukatzemiau@priveasy.de>2011-12-20 16:57:45 (GMT)
commitd7e1ba6fbf5d4c6ea4f72c604338aba73f1464e7 (patch)
treea775c702cd72566c55d3eea5fe8c86b4c65ef73d /files/common/www/service/cgi-bin
parent8ebdb23cff88abd518c8f631eb5e8cc65036d08e (diff)
cosmetic fixes missed in the previous commit
Diffstat (limited to 'files/common/www/service/cgi-bin')
-rwxr-xr-xfiles/common/www/service/cgi-bin/splash2
-rwxr-xr-xfiles/common/www/service/cgi-bin/splash_click3
2 files changed, 2 insertions, 3 deletions
diff --git a/files/common/www/service/cgi-bin/splash b/files/common/www/service/cgi-bin/splash
index 086fa82..1237ce0 100755
--- a/files/common/www/service/cgi-bin/splash
+++ b/files/common/www/service/cgi-bin/splash
@@ -4,4 +4,4 @@ echo -en "Content-Type: text/html\r\n"
echo -en "\r\n"
targeturl="$(echo "$QUERY_STRING" | tr -d '/')"
-sed "s/targeturl/"$targeturl"/g" splash.html
+sed "s/targeturl/$targeturl/g" splash.html
diff --git a/files/common/www/service/cgi-bin/splash_click b/files/common/www/service/cgi-bin/splash_click
index d7e3f2f..1eb4e85 100755
--- a/files/common/www/service/cgi-bin/splash_click
+++ b/files/common/www/service/cgi-bin/splash_click
@@ -7,7 +7,6 @@ echo -en "Content-Type: text/html\r\n"
echo -en "\r\n"
# decode request params
-# url is decoded twice, as it is encoded by the browser and once by us
URL="http://$(sed 's/target_url=//g' | urldecode)"
USER_MAC=$(grep ^$REMOTE_HOST </proc/net/arp \
| awk 'BEGIN { FS = " " } ; { print $4 }')
@@ -34,5 +33,5 @@ if [ $ISSPLASHED -eq 0 ]; then
fi
unlockSplash
-# send response
+# send response (encode / to not confuse sed)
sed "s/targeturl/$(echo "$URL" | sed 's#/#\\/#g')/g" iframe.html
contact: Jan Huwald // Impressum