From: Paul Hänsch Date: Mon, 4 Sep 2023 08:49:00 +0000 (+0200) Subject: bugfix: link path in revision list X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=6ffedaf820cebb10be3eb89746f88e375c806858;p=shellwiki bugfix: link path in revision list --- diff --git a/handlers/40_revision.sh b/handlers/40_revision.sh index 1ab4649..af39df3 100755 --- a/handlers/40_revision.sh +++ b/handlers/40_revision.sh @@ -19,10 +19,11 @@ case "${PATH_INFO}" in REDIRECT "${_BASE}${PATH_INFO%/}" ;; */\[revision\]) - if ! acl_read "${PATH_INFO%\[revision\]}"; then + page="${PATH_INFO%\[revision\]}" + if ! acl_read "${page}"; then theme_error 403 else - "$_EXEC/macros/revisions" --list --diff "$page" \ + "$_EXEC/macros/revisions" --list --diff "${page}" \ | theme_revisions - fi return 0