]> git.plutz.net Git - serve0/commitdiff
fix: accept one digit page size
authorpaul <paul@plutz.net>
Sun, 2 Aug 2015 20:30:41 +0000 (20:30 +0000)
committerpaul <paul@plutz.net>
Sun, 2 Aug 2015 20:30:41 +0000 (20:30 +0000)
svn path=/trunk/; revision=73

actions/preferences.sh

index e754044dc6cda8c89d3d750c729c521a924c0031..9936bec07494b97e669c806eab63e26b4a97ada9 100755 (executable)
@@ -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"