|
For those of you who can compile .Text, I recommend a quite edit to help* reduce the effectiveness of comment spam.
The class to change is Dottext.Framework.Util.Globals. Method: EnableUrls (found in Dottext.Framework\Util\Globals.cs)
In this method, .Text will look for links posted in a comment (prior to this call the entire comment is HtmlEncoded).
Before: text = text.Replace(m.ToString(), "<a target=\"_new\" href=\"" + m.ToString() + "\">" + m.ToString() + "</a>"); After: text = text.Replace(m.ToString(), "<a ref=\"nofollow\" target=\"_new\" href=\"" + m.ToString() + "\">" + m.ToString() + "</a>");
Community Server already had something "home grown" baked in, but was updated ealier today to support nofollow.
* I seriously doubt this will stop spammers, but anything we can do to make not worth the effort the better off we are. See: BrokenWindows |