FYI, pluses are supposed to be replaced by spaces by any app server.  If
someone wants to include pluses in an url parameter then they should
url-encode them as "%2B" (the hex value for 43, the ASCII code a '+'),
and spaces should be encoded as "%20" or "+".  I'll bet you are going to
find other issues with that query parameter unless the other app adopts
the right policy of urlencoding all parameter values.  What will happen
with queries that include the special characters "&", "?", or "%"?

        Mark

-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 18, 2007 9:15 AM
To: CF-Talk
Subject: RE: problem with spaces in value of a list in a URL that is
delimited with "+" sign

You could pull it from cgi.query_striung instead. That should preserve
everything just as you see it.

-----Original Message-----
From: Joy Holman [mailto:[EMAIL PROTECTED]
Sent: Friday, May 18, 2007 8:48 AM
To: CF-Talk
Subject: problem with spaces in value of a list in a URL that is
delimited with "+" sign

I've run out of ideas in how to fix this situation:

Another application that uses the "plus" sign as a delimiter links to my
site with a variable called "search".

It seems ColdFusion replaces the "+" sign with spaces before I can get
at the variable values from a URL. It's only a problem if a value in the
list already had spaces, like:

search=liver+diet and nutrition+eyes

When I do a cfdump on the variable "search", I get:

liver diet and nutrition eyes

Looping through the list with the delimiter "+" or " " or "," displays
the same as the dump.

How can I make the values separated properly by a comma, like:

liver,diet and nutrition,eyes

Help! and Thanks.

Joy










~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278594
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to