Check for whitespace in IsValidUrl.

closes #2020
This commit is contained in:
Taloth Saldono
2017-07-22 22:14:06 +02:00
committed by Qstick
parent cf11906118
commit 18971f9ea2
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))
{