by
Roland Schumacher alias GENiALi
27. September 2006 -- 163
words -- 1 mal gelesen
I have it already times briefly mentioned. There's always again in the dasBlog
Trackback's that cannot be deleted. I thought, come
waiting for the new version. However, there is version at the 1.9'er
the problem still. Same trackback's are not the one
can delete.
Today I tried to solve the problem again.
There, I've found's. Anyway, I think.:-)
Problem:
The method you want to delete the trackback's is used for example: following
pass.
trackingPermalink--"h**p://SPAM_DOMAIN/1phentermine/cheap-phentermine-online.html"
dasBlog goes through all referrers and trackback's of the posting and
finds the appropriate entry. He is not now found
because it is in the collection as follows in it.
tracking.PermaLink - > "h**p://SPAM_DOMAIN/1phentermine/cheap-phentermine-online.html \r"
The \r is important.
The comparison
String.Compare(tracking.PermaLink,_trackingPermalink,_true)
so therefore must fail. Unfortunately.
Solution:
It is found in the method in the file BlogDataService.cs
BlogDataService.DeleteTracking.
I am now so naive, I simply before assessing whether the URL also
does a check installed, the me checks whether the URL to
a \r ends.
intbadString = tracking.PermaLink.IndexOf("\r");
if(badString_>_-1)
{
tracking.PermaLink tracking.PermaLink.Remove(badString); =
}
if( String .Compare(tracking.PermaLink,_trackingPermalink,_true) == 0)
& & trackingType == tracking.TrackingType)
{
Still point is whether I have correctly solved. If not, then let
me know.
49f16b40-ec7c-415e-93ee-237ded8385a3|0|.0
Tags: