summaryrefslogtreecommitdiff
path: root/files/www/cgi-bin/splash_click
diff options
context:
space:
mode:
authorMartin Michel <darkeye@seestern.(none)>2011-05-31 21:47:08 (GMT)
committerMartin Michel <darkeye@seestern.(none)>2011-05-31 21:47:08 (GMT)
commit2a27d1c6f479daa1e5877e639e7b890e7fc8bfc2 (patch)
treef12dd5c7b28e3388f59131063df73f7eaa14e2b8 /files/www/cgi-bin/splash_click
parent62ba9bc06c40adfb729c1b415bef523e7a52076f (diff)
Splash Bug (iframe) fixed
Diffstat (limited to 'files/www/cgi-bin/splash_click')
-rwxr-xr-xfiles/www/cgi-bin/splash_click8
1 files changed, 5 insertions, 3 deletions
diff --git a/files/www/cgi-bin/splash_click b/files/www/cgi-bin/splash_click
index b868658..b54b15a 100755
--- a/files/www/cgi-bin/splash_click
+++ b/files/www/cgi-bin/splash_click
@@ -2,7 +2,10 @@
echo -en "Status: 200 OK\r\n"
echo -en "Content-Type: text/html\r\n"
echo -en "\r\n"
-
+TEST=`cat `
+TEST=`echo $TEST | sed 's/'target_url='/''/g'`
+TEST=`/bin/urldecode "$TEST"`
+TEST=`echo $TEST | sed 's/%2F/\//g'`
. $IPKG_INSTROOT/etc/functions.sh
ISSPLASHED=0
config_load splash_users
@@ -14,8 +17,7 @@ is_ip() {
}
#check if user is alredy splashed
config_foreach is_ip user
-targeturl=$(echo $QUERY_STRING | sed 's/+/ /g; s/%/\\x/g')
-sed "s/targeturl/"$targeturl"/g" /www/iframe.html
+sed 's/targeturl/'"$(echo $TEST| sed 's#/#\\/#g')"'/g' /www/iframe.html
if [ $ISSPLASHED -eq 1 ]; then
exit
contact: Jan Huwald // Impressum