Open nalves599 opened 1 year ago
Possible fix is change custom(...)
to customSanitizer(...)
and inside of the sanitizer, instead of set req.body.domain
, you should return the new value (e.g. return Promise.resolve(domain);
or return Promise.resolve(null);
).
Same bug here.
After upgrading package
express-validator
from version6.3.1 -> 6.14.2
at 4e672a8b51e741f0f276fab999d622dc5337ca88, the creation of short links using a custom domain stops working.This is happening because of this piece of code, which is not having any effect:
https://github.com/thedevs-network/kutt/blob/develop/server/handlers/validators.ts#L125
Since version
6.5.1
ofexpress-validator
, changereq.body
oncustom(...)
validator is not possible.