Ticket #65 (closed defect: fixed)
Shepherd::MythTV produces an error if your mythtv mysql password has an '=' in it
| Reported by: | dean@… | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Shepherd | Version: | 1.x |
| Keywords: | mythtv.pm augment_timezone | Cc: |
Description
Shepherd::MythTV produces an error if your mythtv mysql password has an '=' in it
The regexp used to get the fields from the mysql conf file can get confused if there is an '=' sign in the password itself. This causes the augment_timezone postprocessor to fail.
Suggested patch below.
--- MythTV.pm 2007-11-20 18:49:21.000000000 +1300
+++ MythTV.pm-dean 2007-11-20 18:48:46.000000000 +1300
@@ -84,7 +84,7 @@
while (<F>)
{
chomp;
- $db->{$1} = $2 if ($_ =~ /^(DB.*)=(.*)/);
+ $db->{$1} = $2 if ($_ =~ /^(DB[^=]+)=(.*)/);
}
close(F);
return 1;
Change History
Note: See
TracTickets for help on using
tickets.
