[nycphp-talk] Gmail breaks URLs?

Peter Sawczynec ps at
Fri Jan 19 11:54:20 EST 2007

When the URL is being built, are any of the vars or data coming from a
database being used untrimmed. That is, does any of the source data have
some unintentional space padding around the data? Peter

-----Original Message-----
From: talk-bounces at [mailto:talk-bounces at]
On Behalf Of Stephen Musgrave
Sent: Friday, January 19, 2007 10:45 AM
To: talk at
Subject: [nycphp-talk] Gmail breaks URLs?

I have a double opt-in workflow on a site I am building.  The user  
signs up for membership, they are sent a confirmation email.  There  
is a link in the confirmation email that they must click in order to  
validate their account.  The URL is showing up in Gmail with spaces  
randomly inserting into it, thus breaking the URL.

Here's an example:

http://staging.looq. com/members/validate.php?id= 4917

There's a space after "looq." and before "com/"

There is another space between "id=" and "4917"

The format of the email is HTML.  Looking at the raw source, here's  
what I see:

<a href="ht
tp:// 4917">http:// 
com/members/validate.php?id= 4917</a>

Any ideas of what is causing this?
New York PHP Community Talk Mailing List

NYPHPCon 2006 Presentations Online

Show Your Participation in New York PHP

More information about the talk mailing list