Re: [users@httpd] RewriteMap appending %0d to end of url

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* jason.chancellor@xxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux