Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…tabase.

Refs #8707.
  • Loading branch information...
commit 43bef4efbe3214d3e4c7eb14d2098d0e38fd89e4 1 parent e4f859a
@kenni kenni authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 mythtv/libs/libmythtv/eitfixup.cpp
View
11 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)
Please sign in to comment.
Something went wrong with that request. Please try again.