Skip to content

List mode ingredients editor truncates ingredients containing a semi-colon (;) or ampersand (&) #36

@svensven

Description

@svensven

If the ingredients list has a semi-colon or ampersand in it, the saved ingredients will end there, as they are URL parameter separators and indicate the end of the ingredients_text_fr parameter.

e.g.
https://fr.openfoodfacts.org/cgi/product_jqm2.pl?code=20292867&ingredients_text_fr=Spécialités céréalières cuites 30% (eau, semoule de blé dur, blanc d'oeuf, sel), Salade 16%, Vinaigrette allégée en matières grasses'; au fromage blanc 15 % (eau, huile de colza 3,8%, fromage blanc 3%...

Looking at the record in the proper editor, the saved ingredients stop at matières grasses'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions