Forum OpenACS Development: Re: Tclwebtest fails with query vars and HTML anchors

Collapse
Posted by Dave Bauer on
I guess it depends on how a HTTP 302 redirect works.

Does some HTML get sent to the browser with the URL? or is the URL an HTTP header?

Anyway I agree that there is translating of entities going on that is probably not necessary, but seems like its there more to avoid any potential problems. Unfortunately it can cause a different problem.

Collapse
Posted by Gustaf Neumann on
rfc 2616 defines HTTP and therefore how redirects work; and it defines what the content of a location should be (see section 14.30). URLs must be url encoded, no matter whether or not they contain HTML. So, when a location is decoded, it must be url-decoded.

yes, of course the location is a header field, your code snipplet is used for decoding the header fileds, in particular the "location: ..." of a redirect.

HTML entity-decoding looks still like a bug to me.