diff --git a/lib/response.js b/lib/response.js index f965e539dd2..dd9652ab879 100644 --- a/lib/response.js +++ b/lib/response.js @@ -842,9 +842,9 @@ res.redirect = function redirect(url) { }, html: function(){ - var u = escapeHtml(address); + var escapedUrl = escapeHtml(address); body = '
' + statuses.message[status] + '. Redirecting to ' + u + '
' + + '' + statuses.message[status] + '. Redirecting to ' + escapedUrl + '
' }, default: function(){