Re: files ending with '.' treated as if the '.' is not there

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

 



Kae Verens wrote:
> Eric Covener wrote:
>> On Mon, Oct 13, 2008 at 5:15 AM, Kae Verens <kae@xxxxxxxxxxx> wrote:
>>  
>>> Morning all,
>>>  first post from myself.
>>>
>>> If you have PHP, Perl or plain old CGI installed, and set up Apache to
>>> recognise these files with the extensions '.php', '.pl' or '.cgi',
>>> Apache
>>> will recognise the files even if the filename has a '.' at the end.
>>>
>>> For example, 'test.php.' will be run as if it is a PHP file.
>>>     
>> This is the MultiViews feature
>> http://httpd.apache.org/docs/2.2/content-negotiation.html
>>   
> I don't have MultiViews enabled. In fact, to be sure, I specifically
> disabled it. that thought did occur to me, though.
> 
> I haven't coded in C/C++ in over 10 years, but I'll try did through the
> httpd source to see if I can spot the cause.

On Windows, using a filename with a trailing real space (asc 32) or period
accesses that file without the space or period.  Much like upper/lower case
confusion, httpd normalizes such requested file names to their ACTUAL name
before processing them through mod_mime, etc.


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