(I wrote this Friday but just realized I failed to include the listserv in my reply.)

Thanks so much for the quick replies, and sorry to bring up an old debate. My bad for not searching the archives well enough.

In my case I was generating the URL for use in a plain-text e-mail, so clicking on the URL from a mail client resulted in the browser including "amp;" in the request. I'll probably just do the replaceAll () fix as well.

Nathan

On Apr 26, 2006, at 7:21 PM, David LeBer wrote:


On 26-Apr-06, at 8:32 PM, Mike Schrag wrote:

David LeBer, Nov 15 2005 says a quick Mail search ... This teeters on a religious debate I believe :) It comes down to how you are using the result of that method. If you use it inside of an <a href = ".."> then it's SUPPOSED to be escaped (to be XHTML compliant). However, apparently it fails if you try to use it with a WORedirect. I have no idea what happens if you try to use that inside of Javascript as a location = '..', and obviously if processing it in some other way internally, it will probably throw your code for a loop. So basically, if you were expecting it the old way, it's broken, but if you thought it was broken before, it's fixed :)

Yeah, what he said :-)

I blogged about it here: <http://david.codeferous.com/?p=191>

I ended up doing this:

        url = url.replaceAll("&amp;", "&");

before handing the url off the the WORedirect. Ugly yes, but it works.

--
;david

--
David LeBer
Codeferous Software
'co-defer-ous' adj. producing or containing code
site:   http://www.codeferous.com
blog: http://david.codeferous.com




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/nathan% 40macsdesign.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to