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:
For example, 'test.php.' will be run as if it is a PHP file.
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.

the problem appears to be that the dot at the end is ignored.

in http/mod_mime.c, the extension is grabbed by breaking the filename apart by its '.' symbols and inspecting each part until a known extension is found. (the find_ct() function).

unfortunately, it ignores empty extensions and extensions it doesn't understand. This is a more serious problem than I thought.

what it means, is that a file named "test.php.fdnsafhd" is treated as PHP because Apache (with PHP installed) understands the '.php' extension, but not the '.fdnsafhd' one, so it ignores the '.fdnsafhd' one.

kae

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