httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Stille" <...@willconsult.com>
Subject [users@httpd] apache is replacing & with &amp; in redirect urls ?
Date Mon, 13 Oct 2003 20:14:59 GMT
I am having some problems on a ColdFusion site we have.  I see errors in the error log because
people are requesting URLs that have &amp; instead of a real '&' in them.  For example,
this url causes the app to crash:

/index.cfm?cat=62&amp;subcatid=77&amp;artid=2465

Some of these may be happening at the application level or from cut & paste on client
machines that mangle the URL.  But here is a transcript of me telneting to port 80 and requesting
a script that results in a redirect.  See how apache is putting &amp; in the link?  Why
is that?

-Ryan


[root@cfdev /root]# telnet myhost.com 80
Trying 192.x.x.x...
Connected to mthost.com.
Escape character is '^]'.
GET /track/index.cfm?action=trkclk&bannerid=205&PathInfo=/businessdir/index.cfm HTTP/1.1
HOST: myhost.com

HTTP/1.1 302 Found
Date: Mon, 13 Oct 2003 20:05:18 GMT
Server: Apache/1.3.14 (Unix)
Location: http://myhost.com/realestate/index.cfm?action=show&propertyid=10471
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved <A HREF="http://myhost.com/realestate/index.cfm?action=show&amp;propertyid=10471">here</A>.<P>
<HR>
<ADDRESS>Apache/1.3.14 Server at myhost.com Port 80</ADDRESS>
</BODY></HTML>
Connection closed by foreign host.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message