]> git.plutz.net Git - serve0/blobdiff - actions/multitag.sh
ignore case when sorting, i.e. sort lower and upper case names together
[serve0] / actions / multitag.sh
index 91a787b4a896130d17b414625dd4631d7bbfe995..36f396680af3435393f1180b21d5066ed5c8d206 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/zsh
-# Copyright 2014 - 2016 Paul Hänsch
+# Copyright 2014 - 2017 Paul Hänsch
 #
 # This file is part of Serve0
 #
 # You should have received a copy of the GNU Affero General Public License
 # along with Serve0  If not, see <http://www.gnu.org/licenses/>.
 
-filter="${_POST[f]}"
-search="${_POST[s]}"
-order=$(validate "${_POST[o]}" 'Name|Date|Length' Name)
-page=$(validate "${_POST[pn]}" '[0-9]+' 1)
+backlink="${_POST[page]}"
 
 addtag(){
   meta="$1"
@@ -64,4 +61,4 @@ done
 rm "${_DATA}"/cache/\?* 2>/dev/null
 [ -n "${_POST[tags]}" ] && rm "${_DATA}"/cache/taglist_set "${_DATA}"/cache/taglist_filter 2>/dev/null
 
-redirect "?o=$order&s=$search&f=$filter&pn=$page"
+redirect "$backlink"