forked from GitHub/dbot
Fix [#173] by encoding # in uri and unescaping
This commit is contained in:
parent
1958db6df1
commit
dd9962d465
@ -20,7 +20,7 @@ var pages = function(dbot) {
|
|||||||
|
|
||||||
'/users/:connection/:channel': function(req, res) {
|
'/users/:connection/:channel': function(req, res) {
|
||||||
var connection = req.params.connection;
|
var connection = req.params.connection;
|
||||||
var channel = '#' + req.params.channel;
|
var channel = _.unescape(req.params.channel);
|
||||||
var connections = dbot.instance.connections;
|
var connections = dbot.instance.connections;
|
||||||
|
|
||||||
if(connections.hasOwnProperty(connection) &&
|
if(connections.hasOwnProperty(connection) &&
|
||||||
|
@ -6,5 +6,5 @@ block content
|
|||||||
a(href='/connections') « Connection List
|
a(href='/connections') « Connection List
|
||||||
ul#quotelist
|
ul#quotelist
|
||||||
-each channel in channels
|
-each channel in channels
|
||||||
a(href='/users/'+connection+'/'+channel.substr(1,channel.length))
|
a(href='/users/'+connection+'/'+encodeURIComponent(channel))
|
||||||
li.quotes #{channel}
|
li.quotes #{channel}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user