Skip to content

User "get" api response formatting incorrect #977

Closed
@pb66

Description

When using the user/get.json api to retrieve user details eg

https://emoncms.org/user/get.json?apikey=abcd1234

We get a response like so

{"id":"1234","username":"JoeBloggs","email":"JoeBloggs@gmail.com","gravatar":"JoeBloggs@gmail.com","name":"Joe","location":"UK","timezone":"Europe\/London","language":"en_EN","bio":"","startingpage":"feed\/list","apikey_write":"abcd1234","apikey_read":"wxyz7890","tags":""}

notice that the timezone and the starting page path both have \/ as if the forward slashes are being escaped by the backslashes.

See closed issue #681 for a similar issue previously reported and fixed.

(tested on emoncms.org and older self-hosted emoncms, I do not have a fully updated emoncms in service at the moment)

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions