Not sure how the original developer would want to take care of the sanitization of the strings, but here's a simple fix.
The original code, although it parsed csv text, was not checking for csv in the content-type of the bug's page, and that's why the exception was being raised.
Not sure how the original developer would want to take care of the sanitization of the strings, but here's a simple fix.
The original code, although it parsed csv text, was not checking for csv in the content-type of the bug's page, and that's why the exception was being raised.