{
Dictionary<string, string> param = new Dictionary<string, string>();
- param.Add("name", name);
+ param.Add("name", WebUtility.HtmlEncode(name));
param.Add("url", url);
- param.Add("location", location);
- param.Add("description", description);
+ param.Add("location", WebUtility.HtmlEncode(location));
+ param.Add("description", WebUtility.HtmlEncode(description));
param.Add("include_entities", "true");
return httpCon.GetContent(PostMethod,
* FIX: アカウント追加時の初回認証に失敗する問題を修正 (thx @polka_roco_!)
* FIX: ツールバー上のAPIレートリミット表示が正しく動作しなくなった問題を修正
* FIX: ツイタマなど一部のTwitterクライアントから投稿されたツイートの改行が正しく表示されない問題を修正 (thx @ohta8801, @kossetsu_inryo!)
+ * FIX: プロフィール編集画面で入力した <, > などの記号が保持されない問題を修正 (thx @cn!)
==== Ver 1.0.9-beta1(2013/02/08)
* ベータ版です
using System.Text.RegularExpressions;
using System.Web;
using System.IO;
+using System.Net;
namespace OpenTween
{
try
{
_info.Id = user.Id;
- _info.Name = user.Name.Trim();
+ _info.Name = WebUtility.HtmlDecode(user.Name).Trim();
_info.ScreenName = user.ScreenName;
- _info.Location = user.Location;
- _info.Description = user.Description;
+ _info.Location = WebUtility.HtmlDecode(user.Location);
+ _info.Description = WebUtility.HtmlDecode(user.Description);
_info.ImageUrl = new Uri(user.ProfileImageUrlHttps);
_info.Url = user.Url;
_info.Protect = user.Protected;
private string MakeDescriptionBrowserText(string data)
{
descriptionTxt = MyOwner.createDetailHtml(
- MyOwner.TwitterInstance.CreateHtmlAnchor(data, atlist, null));
+ MyOwner.TwitterInstance.CreateHtmlAnchor(WebUtility.HtmlEncode(data), atlist, null));
return descriptionTxt;
}
// Boston, MA 02110-1301, USA.
using System;
+using System.Net;
namespace OpenTween
{
public UserInfo(TwitterDataModel.User user)
{
this.Id = user.Id;
- this.Name = user.Name.Trim();
+ this.Name = WebUtility.HtmlDecode(user.Name).Trim();
this.ScreenName = user.ScreenName;
- this.Location = user.Location;
- this.Description = user.Description;
+ this.Location = WebUtility.HtmlDecode(user.Location);
+ this.Description = WebUtility.HtmlDecode(user.Description);
try
{
this.ImageUrl = new Uri(user.ProfileImageUrlHttps);