From: paul Date: Wed, 23 Nov 2016 17:09:29 +0000 (+0000) Subject: workaround for REFERER shy browsers: put referrer in POST data X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=5194cb7ab0b85c39208d94c68ab634e9ee6d9784;p=serve0 workaround for REFERER shy browsers: put referrer in POST data svn path=/trunk/; revision=156 --- diff --git a/actions/meta.sh b/actions/meta.sh index fa0f503..ab46894 100755 --- a/actions/meta.sh +++ b/actions/meta.sh @@ -55,4 +55,4 @@ EOF rm ${_DATA}/cache/taglist_set ${_DATA}/cache/taglist_filter 2>/dev/null fi -redirect "${HTTP_REFERER:-?i=&pn=${page}&s=${search}&f=${filter}&o=${order}#${info}}" +redirect "${_POST[referrer]:-?i=&pn=${page}&s=${search}&f=${filter}&o=${order}#${info}}" diff --git a/actions/playctl.sh b/actions/playctl.sh index 1fd907b..55997ca 100755 --- a/actions/playctl.sh +++ b/actions/playctl.sh @@ -48,4 +48,4 @@ elif [ -n "${_POST[osd]+x}" ]; then esac >"$fifofile" fi & -redirect "$HTTP_REFERER" +redirect "${_POST[referrer]}" diff --git a/actions/preferences.sh b/actions/preferences.sh index 9707d68..f9c2707 100755 --- a/actions/preferences.sh +++ b/actions/preferences.sh @@ -13,4 +13,4 @@ set_cookie '+ 1 month' "fakemp4=${fakemp4}" HttpOnly set_cookie '+ 1 month' "watch=${watch}" HttpOnly set_cookie '+ 1 month' "pagesize=${pagesize}" HttpOnly -redirect "$HTTP_REFERER" +redirect "$_POST[referrer]" diff --git a/templates/playctl.html.sh b/templates/playctl.html.sh index d530131..e43beed 100755 --- a/templates/playctl.html.sh +++ b/templates/playctl.html.sh @@ -34,6 +34,7 @@ cat <
+
@@ -63,6 +64,7 @@ cat <Download +
@@ -87,6 +89,7 @@ cat < + diff --git a/templates/preferences.html.sh b/templates/preferences.html.sh index 24e5df9..ab1cb8b 100755 --- a/templates/preferences.html.sh +++ b/templates/preferences.html.sh @@ -45,6 +45,7 @@ cat <
+ EOF diff --git a/templates/view.html.sh b/templates/view.html.sh index 4c3e85b..8c22d6a 100755 --- a/templates/view.html.sh +++ b/templates/view.html.sh @@ -60,6 +60,7 @@ cat <
+