]> git.plutz.net Git - shellwiki/commitdiff
consider base path for editor form action
authorPaul Hänsch <paul@plutz.net>
Tue, 31 May 2022 14:18:01 +0000 (16:18 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 31 May 2022 14:18:01 +0000 (16:18 +0200)
themes/default.sh

index 09e12f2e34f146c3274afc0bce34b1c811a0c7a9..c99477bc4d99c54cb6b3362d04bedc1ff0dcd862 100755 (executable)
@@ -74,7 +74,7 @@ theme_editor(){
   [ "$template" ] && acl_read "$template" || template="$page"
 
   theme_page - "Editor: $title" <<-EOF
-       <form method=POST action="$(HTML "${page%/}/[edit]")">
+       <form method=POST action="$(HTML "${_BASE}${page%/}/[edit]")">
          <input type=hidden name=session_key value="${SESSION_KEY}"/>
          <textarea name=pagetext>$({ wiki_text "$page" \
                                   || wiki_text "$template"; } |HTML)</textarea>