mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 17:04:59 +03:00
Fixed sanitization issue in subscribers
no issue - Added sanitization to subscribed_url & subscribed_referrer fields when rendering error state Credits: Antony Garand
This commit is contained in:
parent
b8fff2321c
commit
308b9ddd40
@ -32,6 +32,8 @@ function _renderer(req, res) {
|
|||||||
*/
|
*/
|
||||||
function errorHandler(error, req, res, next) {
|
function errorHandler(error, req, res, next) {
|
||||||
req.body.email = '';
|
req.body.email = '';
|
||||||
|
req.body.subscribed_url = santizeUrl(req.body.subscribed_url);
|
||||||
|
req.body.subscribed_referrer = santizeUrl(req.body.subscribed_referrer);
|
||||||
|
|
||||||
if (error.statusCode !== 404) {
|
if (error.statusCode !== 404) {
|
||||||
res.locals.error = error;
|
res.locals.error = error;
|
||||||
|
Loading…
Reference in New Issue
Block a user