X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=actions%2Fpreferences.sh;h=f9c27076de055239cc00986671cd08f67fce841c;hb=77d8d8341f42adc7dedd221ba409482186e43a68;hp=9936bec07494b97e669c806eab63e26b4a97ada9;hpb=b377b42e875ab32dc24cb64f588ad0b650b47d6f;p=serve0 diff --git a/actions/preferences.sh b/actions/preferences.sh index 9936bec..f9c2707 100755 --- a/actions/preferences.sh +++ b/actions/preferences.sh @@ -1,7 +1,5 @@ #!/bin/zsh -cgi_post - fakemp4=$( validate "${_POST[fakemp4]}" yes no) watch=$( validate "${_POST[watch]}" '(240p|480p|download|raspi|player|server)' player) pagesize=$(validate "${_POST[pagesize]}" '[1-9][0-9]*' 50) @@ -15,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]"