PDA

View Full Version : typepad commenter's link not clickable


ranko
09-09-2006, 10:14 AM
hello out there in pixelpostland

just wondering if someone might be able to point me in the right direction:

i have a visitor to my site whose URL (when he leaves a comment) won't show up as a clickable link (http://www.my_sarisari_store.typepad.com). the odd thing is that it's perfectly fine in the email notifications and the comments section of the admin. i've checked the ban list and spam control but there doesn't seem to be anything there that would cause this behavior, and akismet doesn't have a problem with it either. just wondering what might cause a specific URL to be singled out this way.

any clues?

Connie
09-09-2006, 10:25 AM
Ranko,

what is the URL of that entry with comment?
I would like to check out that.

But I am wondering about the domain name there: the Subdomain with underscores.. must checkout if that is the reason

I am sure that that is the reason, because underscores are not allowed in domain- and subdomain-names..

as subdomains are installed as redirection, this hoster maybe does not care about valid names

if I find another reason for that, I will continue, but for sure it is no bug in Pixelpost

ranko
09-09-2006, 10:43 AM
Thanks for the quick response Connie!

Sidney's comments -- here (http://www.supersteady.org/photolog/index.php?showimage=143) and here (http://www.supersteady.org/photolog/index.php?showimage=144), for example. http://www.my_sarisari_store.typepad.com/ is his URL as it appears in the admin and email notifications.

Too bad if it's because of the underscores, was just wondering if there was anything I could do to correct this. Thanks!

Connie
09-09-2006, 11:19 AM
well Ranko,

my_sansari_store is definitely a subdomain of typepad.com and I just checked it:

see here:

http://www.bildgier.de/bilder/blogadress.jpg

I started to create an account there, they accept any blogadress,any string, only spaces are not allowed, and they create the subdomain with that blogadress

PP does not accept URLs for clickable links when these contain illegal characters...

that is correct and it will not be changed, I am quite sure....

ranko
09-09-2006, 12:01 PM
Okay then. Thanks for looking into it, even going the extra mile by checking out the typepad sign-up! I appreciate it :)

GeoS
09-10-2006, 08:54 AM
It should work as on URL is done only:
1) $url = isset($_POST['url']) ? $_POST['url'] : "";
if(eregi("\r",$url) || eregi("\n",$url)){ die("No intrusion! ?? :(");}
if(strpos($url,'https://') === false && strpos($url,'http://') === false && strlen($url) > 0) $url = "http://".$url;
$url = clean_comment($url);

2) function clean_comment($string)
{
$string = strip_tags($string);
$string = htmlspecialchars($string,ENT_QUOTES);
$string = addslashes($string);
return $string;
}

Connie
09-10-2006, 09:02 AM
GeoS,

fact is that this is an invalid name for subdomain or part of URL

GeoS
09-10-2006, 09:16 AM
Check if URL is added to DB. It should be as code doesnt take it as invalid!

ranko
09-10-2006, 09:57 AM
Yes, I checked--the URL is added to the DB. Which tells us... what, exactly? That it's something to do with the rendering of the DB info? (Sorry, seems I'm getting out of my depth here...)