Menu

#40 funny chars in $site_title

open
nobody
None
5
2002-02-22
2002-02-22
Tim Hunter
No

I setup a friends site with phpslice, after he thought
it was all good he got errors when a new user signs up
after alot of painful debugging =) I figgured out that
he put -:-BLAH-:- as the site title
the ":" totally kills the smtp connection as its a
reserved char

for a quick and dirty work around I put
$site_title = strtr($site_title,":"," ");

on line 12 of user.php
to translate ":" into " "

is there something better that can be done that might
fix unforseen problems (other then get him to change
the site_title)?

Discussion


Log in to post a comment.