Permalink
Browse files

Filter out NULL-characters from EIT before we save the data in the da…

…tabase.

Refs #8707.
  • Loading branch information...
1 parent 1cfcb2b commit c1c7af0900b357c2e2b811c6affd31fb8a0600ca @kenni kenni committed Apr 13, 2011
Showing with 11 additions and 0 deletions.
  1. +11 −0 mythtv/libs/libmythtv/eitfixup.cpp
@@ -186,11 +186,22 @@ void EITFixUp::Fix(DBEventEIT &event) const
if (event.fixup)
{
if (!event.title.isEmpty())
+ {
+ event.title = event.title.replace(QChar('\0'), "");
event.title = event.title.trimmed();
+ }
+
if (!event.subtitle.isEmpty())
+ {
+ event.subtitle = event.subtitle.replace(QChar('\0'), "");
event.subtitle = event.subtitle.trimmed();
+ }
+
if (!event.description.isEmpty())
+ {
+ event.description = event.description.replace(QChar('\0'), "");
event.description = event.description.trimmed();
+ }
}
if (kFixGenericDVB & event.fixup)

0 comments on commit c1c7af0

Please sign in to comment.