]> git.plutz.net Git - serve0/commitdiff
do not require reference uri in advsearch
authorPaul Hänsch <paul@plutz.net>
Tue, 17 Jul 2018 01:28:20 +0000 (03:28 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 17 Jul 2018 01:28:20 +0000 (03:28 +0200)
advsearch.sh
cgilite
index.cgi
widgets.sh

index 6f85ed2c08d7e80dbb12b7cadb39cb3e486aa10e..38cb17023f453160043e99e52eed6bc2ff7610c5 100644 (file)
@@ -1,7 +1,6 @@
 #!/bin/sh
 
 f=''
-ref="$(POST ref)"
 order="$(POST order |grep -m1 -xE 'Name|Date|Length' || printf Name)"
 
 for n in 1 2 3 4 5 6 7 8 9; do
@@ -17,4 +16,4 @@ for n in 1 2 3 4 5 6 7 8 9; do
 done
 f="${f%^}"
 
-REDIRECT "${ref%%\?*}?o=${order}&f=${f}"
+REDIRECT "$(URL "${ITEM}")?o=${order}&f=${f}"
diff --git a/cgilite b/cgilite
index cbd426df72dee35e5920de18084ca6770454481d..d490f720aed2ad75f580ac526f83c581d659633b 160000 (submodule)
--- a/cgilite
+++ b/cgilite
@@ -1 +1 @@
-Subproject commit cbd426df72dee35e5920de18084ca6770454481d
+Subproject commit d490f720aed2ad75f580ac526f83c581d659633b
index 7a1a3efd2106a677365c2a8ab7c927c8b7608bc7..d6535e77a9e316358d12c81943f6ab0b2ddebd2b 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -3,8 +3,6 @@
 [ -z "${_EXEC%/}" ] && _EXEC="$(realpath "${0%/*}")" || _EXEC="${_EXEC%/}"
 [ -z "${_DATA%/}" ] && _DATA=. || _DATA="${_DATA%/}"
 
-
-
 file_pattern='^.*\.(mov|ts|mpg|mpeg|mp4|m4v|avi|mkv|flv|sfv|wmv|ogm|ogv|webm|iso|rmvb)$'
 
 . "$_EXEC/cgilite/cgilite.sh"
index 1b5f7708425a960b6d57e8496fa314e053964ec3..f9c0380b740c6c0c856db3e7a20c2c6c5750e8ee 100644 (file)
@@ -74,8 +74,7 @@ w_advsearch(){
             [a href="#" Hide]
             [p .help Select multiple tags from each category by holding down the [strong Ctrl] key on your keyboard.[br]
             Refine the search further by setting additional search tags using the [strong "+and"] button.]
-            [hidden "ref" "%s"]
-         ' "$w_refuri"
+         '
 
   for n in 1 2 3 4 5 6 7 8 9 10; do
     f="${filter%%^*}"; filter="${filter#*^}"