mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
a couple minor 'tweaks' to the plugin system so that it works with npm installed plugins
This commit is contained in:
@@ -175,7 +175,7 @@ var RDB = require('./redis.js'),
|
||||
this.attr('rel', 'nofollow');
|
||||
var href = this.attr('href');
|
||||
|
||||
if (href && !href.match(domain)) {
|
||||
if (href && !href.match(domain) && !utils.isRelativeUrl(href)) {
|
||||
this.attr('href', domain + 'outgoing?url=' + encodeURIComponent(href));
|
||||
if (!isSignature) this.append(' <i class="icon-external-link"></i>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user