Topic: [Bug/Fixed] Sources may contain the carriage return character

Posted under Site Bug Reports & Feature Requests

Bug overview description.
Some posts have a carriage return in a source. This is then reflected in the API. This is something that can be solved manually, but it would be useful to have something in place so this can not happen. (I have done a quick query and am getting around 2500-3000 posts affected by this)

What part(s) of the site page(s) are affected?
The API endpoints that return a list of sources for a post (I have only checked post/show and /post/index for both XML and JSON)

What is the expected behavior?
There should not be a carriage return because there are no newline characters.

What actual behavior is given instead?
There is a carriage return.

Time of incident (if applicable).
N/A

Can you reproduce the bug every time?
Yes. Here is a post that has this problem. https://e621.net/post/show.json?id=747972

What steps did you take to replicate this bug?
Visited one of the many posts that have this problem.

Errors or other messages returned (if any).
N/A

Updated by KiraNoot

I went through and removed all remaining \r from the source field.

Updated by anonymous

  • 1