Fixed url processing

main
Inga 🏳‍🌈 14 years ago
parent 74df6619c9
commit e0552233a4
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Common/BBCodes/Google.cs
  3. 2
      Common/BBCodes/Lurk.cs
  4. 2
      Common/BBCodes/RuWiki.cs
  5. 2
      Common/BBCodes/Wiki.cs

@ -13,7 +13,7 @@ namespace FLocal.Common.BBCodes {
}
public override string Format(ITextFormatter formatter) {
return "<a href=\"http://lmgtfy.com/?q=" + HttpUtility.UrlEncode(this.DefaultOrValue) + "\">g:" + this.GetInnerHTML(formatter) + "</a>";
return "<a href=\"http://lmgtfy.com/?q=" + HttpUtility.UrlPathEncode(this.DefaultOrValue) + "\">g:" + this.GetInnerHTML(formatter) + "</a>";
}
}

@ -13,7 +13,7 @@ namespace FLocal.Common.BBCodes {
}
public override string Format(ITextFormatter formatter) {
return "<a href=\"http://lurkmore.ru/" + HttpUtility.UrlEncode(this.DefaultOrValue) + "\">l:" + this.GetInnerHTML(formatter) + "</a>";
return "<a href=\"http://lurkmore.ru/" + HttpUtility.UrlPathEncode(this.DefaultOrValue) + "\">l:" + this.GetInnerHTML(formatter) + "</a>";
}
}

@ -13,7 +13,7 @@ namespace FLocal.Common.BBCodes {
}
public override string Format(ITextFormatter formatter) {
return "<a href=\"http://ru.wikipedia.org/wiki/" + HttpUtility.UrlEncode(this.DefaultOrValue) + "\">в:" + this.GetInnerHTML(formatter) + "</a>";
return "<a href=\"http://ru.wikipedia.org/wiki/" + HttpUtility.UrlPathEncode(this.DefaultOrValue) + "\">в:" + this.GetInnerHTML(formatter) + "</a>";
}
}

@ -13,7 +13,7 @@ namespace FLocal.Common.BBCodes {
}
public override string Format(ITextFormatter formatter) {
return "<a href=\"http://en.wikipedia.org/wiki/" + HttpUtility.UrlEncode(this.DefaultOrValue) + "\">w:" + this.GetInnerHTML(formatter) + "</a>";
return "<a href=\"http://en.wikipedia.org/wiki/" + HttpUtility.UrlPathEncode(this.DefaultOrValue) + "\">w:" + this.GetInnerHTML(formatter) + "</a>";
}
}

Loading…
Cancel
Save