|
|
@ -95,7 +95,7 @@ var express = require('express'),
|
|
|
|
// Complex Routes
|
|
|
|
// Complex Routes
|
|
|
|
app.get('/topic/:topic_id/:slug?', function(req, res) {
|
|
|
|
app.get('/topic/:topic_id/:slug?', function(req, res) {
|
|
|
|
var topic_url = req.params.topic_id + (req.params.slug ? '/' + req.params.slug : '');
|
|
|
|
var topic_url = req.params.topic_id + (req.params.slug ? '/' + req.params.slug : '');
|
|
|
|
topics.get_cid_by_tid(req.params.topic_id, function() {
|
|
|
|
topics.get_cid_by_tid(req.params.topic_id, function(cid) {
|
|
|
|
res.send(
|
|
|
|
res.send(
|
|
|
|
build_header() +
|
|
|
|
build_header() +
|
|
|
|
'<script>alert("' + cid + '");</script>' +
|
|
|
|
'<script>alert("' + cid + '");</script>' +
|
|
|
|