From ded4d75315c2988043c0b7687e1cc254895975d9 Mon Sep 17 00:00:00 2001 From: Jaex Date: Thu, 26 Apr 2018 16:57:30 +0300 Subject: [PATCH] fixed #3332: Ignore ftp links --- ShareX.HelpersLib/Controls/MyPictureBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShareX.HelpersLib/Controls/MyPictureBox.cs b/ShareX.HelpersLib/Controls/MyPictureBox.cs index 3c3ed59b0..16f9f7028 100644 --- a/ShareX.HelpersLib/Controls/MyPictureBox.cs +++ b/ShareX.HelpersLib/Controls/MyPictureBox.cs @@ -242,7 +242,7 @@ public void LoadImageFromFileAsync(string filePath) public void LoadImageFromURLAsync(string url) { - if (!string.IsNullOrEmpty(url)) + if (!string.IsNullOrEmpty(url) && !url.StartsWith("ftp://") && !url.StartsWith("ftps://")) { LoadImageAsync(url); }