id summary reporter owner description type status priority milestone component version severity resolution keywords cc mlocked
5434 nuvexport cannot handle '&' tobias@… xris "If the db-password contains an ""&"", mythtv will save it as an ""&"" in the config-file. So if nuvexport reads this file with the regular expression (and not via an xml-parser), it will not recognize this.
The solution which worked for me was to replace the &. In line 278 of the MythTV.pm (I am using Ubuntu and in my case it's in /usr/share/perl5/) you can find this code:
elsif ($line =~ m#(.*?)#) {
$mysql_conf{'db_pass'} = $1;
}
I replaced this code with:
elsif ($line =~ m#(.*?)#) {
my $pwdtmp = $1;
my $find = ""&"";
my $replace = ""&"";
$pwdtmp =~ s/$find/$replace/g;
$mysql_conf{'db_pass'} = $pwdtmp;
}
Chris Peterson wrote me the following about the bug:
[...] This is actually more about the perl bindings (which nuvexport uses) not unescaping entities in the XML code. Easy fix [...]
If I can help anyhow, please let me know.
Tobias" defect closed minor 0.21.1 perl / nuvexport 0.21 medium fixed 0