shithub: werc

Download patch

ref: 6907d54d05dd505079e7d113105dd5c29e609074
parent: 81213e4fa3e6eb6b346dbf87bf62cc3c02215c55
author: kris <kris@engel.se.cat-v.org>
date: Mon Jun 4 20:36:30 EDT 2007

Some cleanup.

--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -125,13 +125,14 @@
     body=$body/index
     rssuri=$rssuri/
 }
-rssuri=`{cleanname `{basename -d $uri}^/index.rss}
-rssuri=$baseuri$rssuri
 
-if(! ~ $#blogDirs 0)
+if(! ~ $#blogDirs 0) {
+    rssuri=`{basename -d $uri}
+    rssuri=$baseuri`{cleanname $"rssuri^/index.rss}
     extraHeaders=$"extraHeaders ^ \
     	'<link rel="alternate" type="application/rss+xml" title="RSS" href="'$rssuri'">
 '
+}
 
 # RSS
 fn statpost {