Description
<p>TV Server (TVE3) does not check the maximum length of the file names/paths that it creates in the MakeFileName() method in 'RecordingDetail.cs'.</p>
<p>This means it is possible for unusable file paths ( > 260 characters) to be created and passed to other code, resulting in problems - see <a href="https://forum.team-mediaportal.com/threads/recordings-will-not-stop.139185/">https://forum.team-mediaportal.com/threads/recordings-will-not-stop.139185/</a> for an example caused by excessively long program titles from the EPG data.</p>
<p>The changes mean it will check the length and if possible sensibly truncate the generated filename to fit within the Windows limits (with an allowance for later append and prepend of extensions and hostnames/IP addresses in some circumstances).</p>
<p>This means it is possible for unusable file paths ( > 260 characters) to be created and passed to other code, resulting in problems - see <a href="https://forum.team-mediaportal.com/threads/recordings-will-not-stop.139185/">https://forum.team-mediaportal.com/threads/recordings-will-not-stop.139185/</a> for an example caused by excessively long program titles from the EPG data.</p>
<p>The changes mean it will check the length and if possible sensibly truncate the generated filename to fit within the Windows limits (with an allowance for later append and prepend of extensions and hostnames/IP addresses in some circumstances).</p>