Did you also come across this buggin' bug about slogans being cut off in weird places just because of some " or &?
Just in case nobody at threadless knows why this happens: It most likely happens because the length of the database field to store a slogan is set to exactly 65 chars. Before saving a slogan, special chars get converted to HTML representations like "& q u o t ;" or "& a m p ;" so the slogan gets longer and doesn't fit in the database column any more. The solution is: Always store the original in the database, never a changed version. The conversion should only be done on output. If you feel that this creates too much stress on the server because that way the conversion has to be done every time the slogan is displayed then you could, of course, also extend the length of the database field. You just need to check the slogan's length once before converting special chars. The database field would have to allow for 390 chars (65 * 6) to cover the worst case scenario.
7 days later
11 days later
15 days later
5 days later
21 days later
You must be logged in to leave a comment.
|
My gallery photos
I haven't submitted any photos. I guess I don't want free money.
All about me |