summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenni Lund <kenni@mythtv.org>2011-04-13 19:04:11 (GMT)
committer Kenni Lund <kenni@mythtv.org>2011-04-13 19:08:32 (GMT)
commitc1c7af0900b357c2e2b811c6affd31fb8a0600ca (patch)
tree4119c57b6cc25129e332c6bf07ee2ac8a40f6f95
parent1cfcb2b7eecacce7e1ecc8542bff67dfd3f0139f (diff)
Filter out NULL-characters from EIT before we save the data in the database.
Refs #8707.
-rw-r--r--mythtv/libs/libmythtv/eitfixup.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/mythtv/libs/libmythtv/eitfixup.cpp b/mythtv/libs/libmythtv/eitfixup.cpp
index 2c4952c..cd4c300 100644
--- a/mythtv/libs/libmythtv/eitfixup.cpp
+++ b/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)