Commit 103f76b7 authored by nanahira's avatar nanahira

fix

parent e6ad8a5e
...@@ -3,7 +3,6 @@ using System; ...@@ -3,7 +3,6 @@ using System;
using System.Text; using System.Text;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Web;
[Serializable] [Serializable]
public class LoginUserObject { public class LoginUserObject {
...@@ -107,7 +106,7 @@ public class MyCardHelper { ...@@ -107,7 +106,7 @@ public class MyCardHelper {
public static void DownloadFace(string name) { public static void DownloadFace(string name) {
try { try {
WWW www = new WWW("https://api.moecube.com/accounts/users/"+System.Web.HttpUtility.UrlEncode(name)+".avatar"); WWW www = new WWW("https://api.moecube.com/accounts/users/"+www.EscapeURL(name, Encoding.UTF8)+".avatar");
while (!www.isDone) { while (!www.isDone) {
if (Application.internetReachability == NetworkReachability.NotReachable || !string.IsNullOrEmpty(www.error)) if (Application.internetReachability == NetworkReachability.NotReachable || !string.IsNullOrEmpty(www.error))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment