Node.js based forum software built for the modern web
issue #57 again - tightened the regex a bit more (escaped the dot)
Julian Lam7cdef19b944f
diff --git a/src/webserver.js b/src/webserver.jsindex 26b28d2d7e..3a9a5e2627 100644--- a/src/webserver.js+++ b/src/webserver.js@@ -169,7 +169,7 @@ var express = require('express'),app.get('/topic/:topic_id/:slug?', function(req, res) {var tid = req.params.topic_id;- if (tid.match('\d+.rss$')) {+ if (tid.match('\d+\.rss$')) {fs.readFile('feeds/topics/' + tid, function (err, data) {if (err) {res.type('text').send(404, "Unable to locate an rss feed at this location.");@@ -197,7 +197,7 @@ var express = require('express'),app.get('/category/:category_id/:slug?', function(req, res) {var cid = req.params.category_id;- if (cid.match('\d+.rss$')) {+ if (cid.match('\d+\.rss$')) {fs.readFile('feeds/categories/' + cid, function (err, data) {if (err) {res.type('text').send(404, "Unable to locate an rss feed at this location.");