<div dir="ltr"><div>Havent got the time to test it yet.</div><div>But I have raised a Ticket :</div><div><a href="https://code.mythtv.org/trac/ticket/13535#ticket">https://code.mythtv.org/trac/ticket/13535#ticket</a></div><div><br></div><div>Will report, when I try it.</div><div><br></div><div>Thanks!</div><div>Cheers,</div><div>Miro</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 2. Dez. 2019 um 18:18 Uhr schrieb Douglas Paul <<a href="mailto:doug@bogon.ca">doug@bogon.ca</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
On Mon, Dec 02, 2019 at 05:43:34PM +0100, Miroslav Pavlovic wrote:<br>
> ok, me again...<br>
> <br>
> Is this a Bug ?<br>
> I mean, that mythweb is adding the newlines into the table ?<br>
> I do not have an account for raising Bugs.<br>
> <br>
> Any idea?<br>
<br>
I don't think mythweb is inserting the bad data in the database.<br>
<br>
To me, this seems to be a bug in two places:<br>
1) EIT (I assume that's where the program info is coming from) -- it<br>
probably should sanitize things before it puts them in the database <br>
2) Mythweb - should be more robust against questionable data in the<br>
database<br>
<br>
I don't use either so I can't really recommend a good fix or test one.<br>
<br>
You should be able to create an account to raise a bug.<br>
<br>
Using grep, it seems to me the issue you are hitting is in <br>
mythweb/modules/stream/<a href="http://stream_asx.pl" rel="noreferrer" target="_blank">stream_asx.pl</a> in mythweb (because in the other<br>
cases, there is whitespace around the - between title and subtitle). <br>
<br>
You might be able to hack it to sanitize the suggested filename a bit in<br>
that file -- you might need to adjust the other scripts too though.<br>
<br>
Something like this may work: (completely untested)<br>
<br>
# Print out the HTML headers and the ASX file itself<br>
## *add this*<br>
$title =~ s/\W/_/g;<br>
$subtitle =~ s/\W/_/g;<br>
## *end add this*<br>
print header(-type => 'video/x-ms-asf',<br>
-Content_length => length($file),<br>
-Content_disposition => " attachment; filename=\"$title-$subtitle.asx\"",<br>
),<br>
$file;<br>
<br>
-- <br>
Douglas Paul<br>
<br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div>