1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-23 22:25:14 -04:00

Fixed: UI loading when movie or root folder path is for wrong OS

(cherry picked from commit 5f7217844533907d7fc6287a48efb31987736c4c)
This commit is contained in:
Mark McDowall
2023-08-03 17:55:50 -07:00
committed by Bogdan
parent bd49a4ee8b
commit b8f06eb97d
5 changed files with 38 additions and 9 deletions
@@ -170,6 +170,11 @@ namespace NzbDrone.Common.Extensions
public static bool ContainsInvalidPathChars(this string text)
{
if (text.IsNullOrWhiteSpace())
{
throw new ArgumentNullException("text");
}
return text.IndexOfAny(Path.GetInvalidPathChars()) >= 0;
}