From fc08c7fa75b517ffbe087e32e4edca8c55ba35c5 Mon Sep 17 00:00:00 2001 From: Steven Hildreth Date: Sun, 16 Dec 2018 17:45:42 -0600 Subject: [PATCH] Profile work --- RoadieApi/Controllers/AccountController.cs | 1 + RoadieLibrary/Imaging/ImageHelper.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RoadieApi/Controllers/AccountController.cs b/RoadieApi/Controllers/AccountController.cs index ce38058..e0a79e6 100644 --- a/RoadieApi/Controllers/AccountController.cs +++ b/RoadieApi/Controllers/AccountController.cs @@ -127,6 +127,7 @@ namespace Roadie.Api.Controllers { UserName = registerModel.Username, RegisteredOn = DateTime.UtcNow, + DoUseHtmlPlayer = true, Email = registerModel.Email }; diff --git a/RoadieLibrary/Imaging/ImageHelper.cs b/RoadieLibrary/Imaging/ImageHelper.cs index 247ccdd..1f0dd8f 100644 --- a/RoadieLibrary/Imaging/ImageHelper.cs +++ b/RoadieLibrary/Imaging/ImageHelper.cs @@ -96,7 +96,7 @@ namespace Roadie.Library.Imaging public static byte[] ImageDataFromUrl(string imageUrl) { - if (!string.IsNullOrEmpty(imageUrl)) + if (!string.IsNullOrEmpty(imageUrl) && !imageUrl.StartsWith("http", StringComparison.OrdinalIgnoreCase)) { var dataString = imageUrl.Trim().Replace('-', '+') .Replace("data:image/jpeg;base64,", "")