Jul 2, 2019
0
Level 2
LineBreak (\n\r) throws error at API with JSON
Hey guys,
I am building a API which get requests in JSON-format. Some fields are getting long text values with linebreaks (\n\r) these linebreaks creates an internal server error, probably cause these linebreaks.
Is there a function to sanitize such requests so an error like this does not happen?
Best regards, Robert
Please or to participate in this conversation.