|
|
@ -3,6 +3,7 @@ using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using System.Text; |
|
|
|
using System.Web; |
|
|
|
using System.Web; |
|
|
|
|
|
|
|
using FLocal.Core; |
|
|
|
|
|
|
|
|
|
|
|
namespace FLocal.Common.BBCodes { |
|
|
|
namespace FLocal.Common.BBCodes { |
|
|
|
class UrlProcessor { |
|
|
|
class UrlProcessor { |
|
|
@ -74,6 +75,9 @@ namespace FLocal.Common.BBCodes { |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var linkInfo = URL.UrlManager.Parse(url, new System.Collections.Specialized.NameValueCollection(), true); |
|
|
|
var linkInfo = URL.UrlManager.Parse(url, new System.Collections.Specialized.NameValueCollection(), true); |
|
|
|
|
|
|
|
if(linkInfo == null) { |
|
|
|
|
|
|
|
throw new FLocalException("Unable to parse link: " + url); |
|
|
|
|
|
|
|
} |
|
|
|
url = linkInfo.canonicalFull; |
|
|
|
url = linkInfo.canonicalFull; |
|
|
|
if(title == null) { |
|
|
|
if(title == null) { |
|
|
|
title = linkInfo.title; |
|
|
|
title = linkInfo.title; |
|
|
|