From b377b42e875ab32dc24cb64f588ad0b650b47d6f Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 2 Aug 2015 20:30:41 +0000 Subject: [PATCH] fix: accept one digit page size svn path=/trunk/; revision=73 --- actions/preferences.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" -- 2.39.2