Baris Soner Usakli 12 years ago
commit 9e5ecf0ae8

@ -1,31 +1,8 @@
{ {
"author": "psychobunny <andrew@designcreateplay.com>, julianlam <julian@designcreateplay.com>, barisusakli <baris@designcreateplay.com>",
"contributors": [
{
"name": "Andrew Rodrigues",
"email": "andrew@designcreateplay.com"
},
{
"name": "Julian Lam",
"email": "julian@designcreateplay.com"
},
{
"name": "Barış Soner Uşaklı",
"email": "baris@designcreateplay.com"
},
{
"name": "Damian Bushong",
"url": "https://github.com/damianb"
},
{
"name": "Matt Smith",
"url": "https://github.com/soimafreak"
}
],
"license": "GPLv3 or later",
"name": "NodeBB", "name": "NodeBB",
"license": "GPLv3 or later",
"description": "NodeBB Forum", "description": "NodeBB Forum",
"version": "0.0.2", "version": "0.0.3",
"homepage": "http://www.nodebb.org", "homepage": "http://www.nodebb.org",
"repository": { "repository": {
"type": "git", "type": "git",
@ -60,5 +37,27 @@
}, },
"engines": { "engines": {
"node": ">=0.8" "node": ">=0.8"
} },
"contributors": [
{
"name": "Andrew Rodrigues",
"email": "andrew@designcreateplay.com"
},
{
"name": "Julian Lam",
"email": "julian@designcreateplay.com"
},
{
"name": "Barış Soner Uşaklı",
"email": "baris@designcreateplay.com"
},
{
"name": "Damian Bushong",
"url": "https://github.com/damianb"
},
{
"name": "Matt Smith",
"url": "https://github.com/soimafreak"
}
]
} }

@ -169,7 +169,7 @@ var express = require('express'),
app.get('/topic/:topic_id/:slug?', function(req, res) { app.get('/topic/:topic_id/:slug?', function(req, res) {
var tid = req.params.topic_id; var tid = req.params.topic_id;
if (tid.match('.rss')) { if (tid.match('\d+\.rss$')) {
fs.readFile('feeds/topics/' + tid, function (err, data) { fs.readFile('feeds/topics/' + tid, function (err, data) {
if (err) { if (err) {
res.type('text').send(404, "Unable to locate an rss feed at this location."); 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) { app.get('/category/:category_id/:slug?', function(req, res) {
var cid = req.params.category_id; var cid = req.params.category_id;
if (cid.match('.rss')) { if (cid.match('\d+\.rss$')) {
fs.readFile('feeds/categories/' + cid, function (err, data) { fs.readFile('feeds/categories/' + cid, function (err, data) {
if (err) { if (err) {
res.type('text').send(404, "Unable to locate an rss feed at this location."); res.type('text').send(404, "Unable to locate an rss feed at this location.");

Loading…
Cancel
Save