commit 3e5a2da37250ec17a3b265eda3d23f5da19c7d63
parent 6ac98d48e63be79234d3240c0654ca90448957d8
Author: uriel@engel.se.cat-v.org <unknown>
Date: Tue, 21 Oct 2008 16:37:16 +0200
New req_path var
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/controller.rc b/bin/controller.rc
@@ -247,17 +247,17 @@ if (! ~ $args '') {
perm_redirect `{ echo $REQUEST_URI | sed 's,/index$,/,' }
pageTitle=`{echo $args | sed -e 's/ / - /g' -e 's/_/ /g'}
- body=$uri
+ req_path=$uri
}
if not {
- body='/'
+ req_path='/'
}
fpath=$sitedir
for (i in ('' $args)) {
fpath = $fpath/$i
# We don't want blog settings to cascade into posts, note that we are inBlog instead
- if (! ~ $#blogDirs 0 && ! ~ $body */index.rss */[bB]log */[bB]log/) {
+ if (! ~ $#blogDirs 0 && ! ~ $req_path */index.rss */[bB]log */[bB]log/) {
inBlog = $blogDirs
blogDirs = ()
}
@@ -290,7 +290,7 @@ if not
pageTitle=$"pageTitle^' | '^$"siteTitle^' '^$"siteSubTitle
-body=$sitedir/$body
+body=$sitedir/$req_path
if (test -d $body) {
if(! ~ $body */)
perm_redirect $REQUEST_URI^'/'