cid undefined bug

v1.18.x
psychobunny 12 years ago
parent c66885af51
commit f9e015f194

@ -328,7 +328,6 @@ marked.setOptions({
RDB.set(schema.topics(tid).uid, uid); RDB.set(schema.topics(tid).uid, uid);
RDB.set(schema.topics(tid).slug, slug); RDB.set(schema.topics(tid).slug, slug);
RDB.set(schema.topics(tid).timestamp, new Date().getTime()); RDB.set(schema.topics(tid).timestamp, new Date().getTime());
RDB.set(schema.topics().slug(slug).tid, tid); RDB.set(schema.topics().slug(slug).tid, tid);

@ -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>' +

Loading…
Cancel
Save