﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
11354	Newlines in file.subtitle in recorded.php cause Javascript error (patch)	Martin van Es <martin@…>	Rob Smith	"When parsing mythweb/tv/recorded my (chrome and firefox) browsers throw an ""Uncaught SyntaxError: Unexpected token ILLEGAL"" error on all file.subtitle strings containing newlines in the generated ""Load the known shows"" Javascript part. The result is I can't delete recordings.

My work-around is to encapsulate the line generating the file.subtitle string on line 300 with a string_replace and nl2br like this:

{{{
file.subtitle   = '<?php echo str_replace(""\n"", '', nl2br(addslashes($show->subtitle)))               ?>';
}}}

The nl2br replaces all newline variants to one <br />\n but the \n must disappear as well, so that's what the str_replace is for.

With this patch, the page loads succesfull and I can delete recordings again."	Bug Report - General	closed	major	unknown	Plugin - MythWeb	0.26-fixes	medium	Fixed			0
