Fix a UnicodeDecodeError processing markdown.

Review Request #7307 — Created May 16, 2015 and submitted — Latest diff uploaded

Information

Review Board
release-2.0.x
85f5342...

Reviewers

In some code paths, we end up passing a bytes object into the markdown library.
This isn't expected to work, and causes a UnicodeDecodeError noting that we
should only be passing in unicode objects. Because we have a number of
different code-paths doing different things, I've made it so the render_markdown
method can accept either bytes or unicode, and will decode if necessary.

Ran unit tests.

    Loading...