Don't attempt to create an image object from a URL
This commit is contained in:
@@ -289,6 +289,9 @@ namespace OurUmbraco.Our
|
||||
{
|
||||
try
|
||||
{
|
||||
if (memberAvatarPath.StartsWith("http://") || memberAvatarPath.StartsWith("https://"))
|
||||
return null;
|
||||
|
||||
return Image.FromFile(memberAvatarPath);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user