Permalink
Browse files

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

…tabase.

Refs #8707.
  • Loading branch information...
kenni committed Apr 13, 2011
1 parent e4f859a commit 43bef4efbe3214d3e4c7eb14d2098d0e38fd89e4
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 43bef4e

Please sign in to comment.