Quellcode durchsuchen

Merge pull request #6257 from LuoYun-Team/enforce-https

fix:使用 HTTP 协议获取皮肤导致被劫持
龙腾猫跃 vor 1 Jahr
Ursprung
Commit
2359776803
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Plain Craft Launcher 2/Modules/Minecraft/ModMinecraft.vb

+ 1 - 1
Plain Craft Launcher 2/Modules/Minecraft/ModMinecraft.vb

@@ -1595,7 +1595,7 @@ OnLoaded:
         Try
         Try
             For Each SkinProperty In GetJson(SkinString)("properties")
             For Each SkinProperty In GetJson(SkinString)("properties")
                 If SkinProperty("name") = "textures" Then
                 If SkinProperty("name") = "textures" Then
-                    SkinValue = SkinProperty("value")
+                    SkinValue = SkinProperty("value").Replace("http:","https:")
                     Exit Try
                     Exit Try
                 End If
                 End If
             Next
             Next