Explorar o código

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

fix:使用 HTTP 协议获取皮肤导致被劫持
龙腾猫跃 hai 1 ano
pai
achega
2359776803
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
             For Each SkinProperty In GetJson(SkinString)("properties")
                 If SkinProperty("name") = "textures" Then
-                    SkinValue = SkinProperty("value")
+                    SkinValue = SkinProperty("value").Replace("http:","https:")
                     Exit Try
                 End If
             Next