shithub: werc

Download patch

ref: 6976b1fac34633a9d47e4b7dada6037c66c61502
parent: 688711201e6e0715936a10fec63fa00ce8e6b914
author: uriel <[email protected]>
date: Mon Oct 13 21:49:35 EDT 2008

Fix bug where blogDir wouldn't be set properly

--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -186,7 +186,7 @@
     # Rss feeds. TODO: we should check that the request is for a real blog dir
     if not if (~ $REQUEST_URI */index.rss) {
         uri = `{echo $uri | sed 's/index.rss$//'}
-        if (~ $blogDirs 0)
+        if (~ $#blogDirs 0)
             blogDirs = $sitedir^$uri
         uri=$baseuri$"uri
         master_template=feeds/rss20.tpl