mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
fixed outgoing route to handle links with querystrings in it (using req.query instead of req.url). closes #154.
This commit is contained in:
@@ -139,10 +139,11 @@ var user = require('./../user.js'),
|
||||
});
|
||||
|
||||
app.get('/api/outgoing', function(req, res) {
|
||||
var url = req.url.split('?');
|
||||
if (url[1]) {
|
||||
var url = req.query.url;
|
||||
|
||||
if (url) {
|
||||
res.json({
|
||||
url: url[1],
|
||||
url: url,
|
||||
home: global.nconf.get('url')
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user