From: paul Date: Sat, 14 Jan 2017 06:26:42 +0000 (+0000) Subject: bugfix, base links in paginated browse pages X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=19b21afda273f971fa280531b1f51ea6623a7102;p=serve0 bugfix, base links in paginated browse pages svn path=/trunk/; revision=169 --- diff --git a/pages/browse.sh b/pages/browse.sh index 9b3e866..e46023a 100755 --- a/pages/browse.sh +++ b/pages/browse.sh @@ -26,6 +26,8 @@ directory="$(invalidate "${_GET[d]}" '(.*/)?\.\.(/.*)?|' /)" filters="${_GET[f]}" debug "FILTERS: $filters" +page_link="p=browse&d=$(urlsafe "$directory")&${page_link}" + present_filter(){ printf %s\\n "$*" \ | sed -r 's;(^|!|\^|\|)([^!\^\|:]+:);\1;g;s;\^;\n;g' \