This is not a fix, it is just proof that u_genre is not what you think it is. It is for some reason already the result of calling repr() on the original string. You need to figure out why that is and solve it at the source.
Using eval() in production code is a very bad idea, it is an arbitrary code execution loophole.
|