httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: [users@httpd] RewriteMap appending %0d to end of url
Date Wed, 15 Nov 2006 10:05:56 GMT
* jason.chancellor@jtechcorp.com wrote: 

> I'm attempting to use RewriteMap to do some complex url rewriting.  The
> problem I'm running into is that for some reason my urls end up with a
> %0d appended to the end.  I have searched the net for solutions and have
> found several people with the same problem but have not found a solution.
>
> I believe this problem is specific to apache on windows and specifically
> deals with the difference between a windows newline and a unix newline,
> but can't guarantee that.

Yes, the c runtime makes perl see a \r\n instead of the \n, mod_rewrite 
sends and vice versa. You can avoid that by switching stdin and stdout to 
binary mode (2.2 fixes that in mod_rewrite, iirc).

nd

---------------------------------------------------------------------
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