Don't attempt to create an image object from a URL

This commit is contained in:
Sebastiaan Janssen
2017-01-06 16:22:05 +01:00
parent 1c71708c5f
commit e3eaff1edf
+3
View File
@@ -289,6 +289,9 @@ namespace OurUmbraco.Our
{
try
{
if (memberAvatarPath.StartsWith("http://") || memberAvatarPath.StartsWith("https://"))
return null;
return Image.FromFile(memberAvatarPath);
}
catch (Exception ex)