mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
prevent inline js payloads from executing in outgoing page
This commit is contained in:
@@ -391,7 +391,7 @@ Controllers.manifest = function (req, res) {
|
||||
Controllers.outgoing = function (req, res, next) {
|
||||
var url = req.query.url || '';
|
||||
|
||||
if (!url) {
|
||||
if (!url || url.startsWith('javascript:')) {
|
||||
return next();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user