哎,终于吧免费版的采集搞定了,官方的UrlPlus这个类写的有问题!!!:default21:
Foosun.CMS 下面的 Foosun.CMS.Collect.Utility.UrlPlus 自己改了个,发给大家学习。
文件为: \Foosun\Foosun.CMS\Collect\Utility.cs
免费版吧UrlPlus这个类换成我这个就可以了!
没有编译环境的下附件把!
private static string UrlPlus(string front, string tail)
{
int num1 = 0;
tail = tail.ToLower();
front = front.Substring(0, front.IndexOf("/", 8));
if (tail.StartsWith("./"))
{
tail = tail.Remove(0, 1);
tail = front + tail;
}
else if (tail.StartsWith("/"))
{
tail = front + tail;
}
else if (tail.StartsWith("../"))
{
while (tail.StartsWith("../"))
{
num1 = ++num1;
tail = tail.Remove(0, 3);
}
for (int num2 = 0; num2 < num1; num2++)
{
front = front.Substring(0, front.LastIndexOf("/", front.Length - 2));
}
tail = front + "/" + tail;
}
if (!tail.StartsWith("http://") && !tail.StartsWith("https://"))
{
tail = front + "/" + tail;
}
return tail;
}

附件:
您所在的用户组无法下载或查看附件