]> 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 c5a8df12c4a3c12a456cac8b359eed1bbbfd4a61..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="${_GET[f]}"
-search="${_GET[s]}"
-order=$(validate "${_GET[o]}" 'Name|Date|Length' Name)
-page=$(validate "${_GET[pn]}" '[0-9]+' 1)
+backlink="${_POST[page]}"
 
 addtag(){
   meta="$1"
@@ -62,6 +59,6 @@ while [ -n "${_POST[tagsel$n]}" ]; do
 done
 
 rm "${_DATA}"/cache/\?* 2>/dev/null
-[ -n "${_POST[tags]}" ] && rm "${_DATA}"/cache/taglist 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"