1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00

Check for whitespace in IsValidUrl.

closes #2020
This commit is contained in:
Taloth Saldono
2017-07-22 22:14:06 +02:00
parent 4b9f2e0ff7
commit 792773323c
3 changed files with 35 additions and 0 deletions
@@ -11,6 +11,11 @@ namespace NzbDrone.Common.Extensions
return false;
}
if (path.StartsWith(" ") || path.EndsWith(" "))
{
return false;
}
Uri uri;
if (!Uri.TryCreate(path, UriKind.Absolute, out uri))
{