From: paul Date: Sun, 2 Aug 2015 20:30:41 +0000 (+0000) Subject: fix: accept one digit page size X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=b377b42e875ab32dc24cb64f588ad0b650b47d6f;p=serve0 fix: accept one digit page size svn path=/trunk/; revision=73 --- diff --git a/actions/preferences.sh b/actions/preferences.sh index e754044..9936bec 100755 --- a/actions/preferences.sh +++ b/actions/preferences.sh @@ -2,9 +2,9 @@ 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]+' 1) +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) debug '== Setting Preferences ==' debug "fakemp4 = $fakemp4"