]> git.plutz.net Git - shellwiki/commitdiff
bugfix: link path in revision list
authorPaul Hänsch <paul@plutz.net>
Mon, 4 Sep 2023 08:49:00 +0000 (10:49 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 4 Sep 2023 08:49:00 +0000 (10:49 +0200)
handlers/40_revision.sh

index 1ab4649ef3c1ddc9a7db7d61621b3b5bc2abf760..af39df36adc8ea66a047b78e42e9d3d406030820 100755 (executable)
@@ -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