Re: Do NOT add a slash at the end of the directory path.

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

 



solprovider@xxxxxxxxxx wrote:
Input validation is typically handled with something like:
if(ServerRoot ends with slash) ServerRoot = ServerRootWithFinalSlashRemoved;

I must confess that I thought this was the normal way to do things as well.

Of course, one problem is that removing a trailing slash may not be the right thing to do because Apache runs on more than just Unix. Windows is probably easy to handle compared with NetWare and mainframes.

Cheers
--
Lloyd Parkes
Senior Systems Programmer
Open Systems
Ph: +64 4 890 2437

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