double-extensions in apache?

der.hans PLUGd at LuftHans.com
Sun Mar 20 00:21:12 MST 2011


moin moin,

"When web servers such as Apache decide how to process a URL request, they
use the file extension. If the extension is not recognized, Apache skips
that extension and uses the previous file extension. For example, if the
file being requested is exploit.php.pps, and Apache does not recognize the
'.pps' extension, it treats the file as PHP and executes it."

http://api.drupal.org/api/drupal/includes--file.inc/function/file_munge_filename/6

That absolutely doesn't make sense to me. It seems foolish to reinterpret
what the content-type is.

Apache ( and other web-servers ) shouldn't be making wild guesses about
content-types.

http://www.ruby-forum.com/topic/185709

ciao,

der.hans
-- 
#  http://www.LuftHans.com/        http://www.LuftHans.com/Classes/
#  ABLEconf - 2011Apr02 - Free Software for Free Enterprise
#  Magic is science unexplained. - der.hans


More information about the PLUG-discuss mailing list