Skip to content

Commit 0cde42c

Browse files
Don't get file name when webapp has external provider
Issue:105265 (cherry picked from commit dd4f2a8)
1 parent 803e420 commit 0cde42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6070,7 +6070,7 @@ public static string Save(Image bitmap, string imageFile, ImageFormat format)
60706070
ms.Position = 0;
60716071
try
60726072
{
6073-
if (imageFile.StartsWith("http://") || imageFile.StartsWith("https://"))
6073+
if ((imageFile.StartsWith("http://") || imageFile.StartsWith("https://")) && ServiceFactory.GetExternalProvider() == null)
60746074
{
60756075
Uri uri = new Uri(imageFile);
60766076
imageFile = Path.GetFileName(uri.AbsolutePath);

0 commit comments

Comments
 (0)