Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to delete user (for admins), JS error due to unescaped apostrophe in French translation #9533

Closed
stephanegigandet opened this issue Dec 15, 2023 · 2 comments

Comments

@stephanegigandet
Copy link
Contributor

Reported by @raphael0202 :

It looks like I can't delete a user on prod (https://fr.openfoodfacts.org/cgi/user.pl?type=edit&userid=EMAIL), is this issue known?

@stephanegigandet
Copy link
Contributor Author

There's a translation that contains a ' and it's unescaped: "onclick="if ('email'.localeCompare(prompt('Cela supprimera vos informations d'utilisateur et anonymisera toutes vos contributions. Veuillez ressaisir votre nom d'utilisateur pour confirmer.'),"

@stephanegigandet stephanegigandet changed the title Unable to delete user (for admins), due to unescaped apostrophe in French translation Unable to delete user (for admins), JS error due to unescaped apostrophe in French translation Dec 15, 2023
@stephanegigandet
Copy link
Contributor Author

Fixed by @alexgarel #9822

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant