mythnettv can't handle apostrephy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MythNetTV |
Fix Committed
|
Undecided
|
Michael Still |
Bug Description
When trying to import a local file with an apostrephy in the description, mythnettv crashes and gives the following error. I tried the description both with quotes and no quotes, failing both times.
Traceback (most recent call last):
File "/usr/share/
main(sys.argv)
File "/usr/share/
prog.
File "/usr/share/
self.Store()
File "/usr/share/
raise e
database.
From the forums, this has also been a confirmed problem when subscribing to feeds, indicating that mythnettv can't handle apostrephies at all.
description: | updated |
description: | updated |
Changed in mythnettv: | |
assignee: | nobody → mikal-stillhq |
status: | New → Confirmed |
This is a problem with single quotes being escaped when handed to the MySQL database. I've added single quote escaping to the FormatSqlValue() method, as well as adding unit tests so this shouldn't regress. The fix was submitted in revision 270.