mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 14:09:03 -04:00
[pronoun] decodeURIComponent
This commit is contained in:
parent
c87ec1cd20
commit
cf30d78a88
@ -61,7 +61,7 @@ router.get('/pronouns/:pronoun*', handleErrorAsync(async (req, res) => {
|
|||||||
router.get('/pronouns-name/:pronoun*', handleErrorAsync(async (req, res) => {
|
router.get('/pronouns-name/:pronoun*', handleErrorAsync(async (req, res) => {
|
||||||
const pronoun = buildPronoun(
|
const pronoun = buildPronoun(
|
||||||
parsePronouns(loadTsv('pronouns/pronouns')),
|
parsePronouns(loadTsv('pronouns/pronouns')),
|
||||||
req.params.pronoun + req.params[0],
|
decodeURIComponent(req.params.pronoun + req.params[0]),
|
||||||
);
|
);
|
||||||
if (!pronoun) {
|
if (!pronoun) {
|
||||||
return res.status(404).json({error: 'Not found'});
|
return res.status(404).json({error: 'Not found'});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user