[Openfontlibrary] ccHost compression

Dave Crossland dave at lab6.com
Mon Nov 3 03:53:28 PST 2008


2008/11/3 Brendan Ferguson <drsassafras at gmail.com>:
>
> It sounds like you are describing user security. This is really a server
> security issue for me.
>
> Take a PHP file. What headers will it have? NONE!

By "headers" Ed means "the first few bytes of the file". So the "file"
command does indeed identify PHP files perfectly:

$ file web/www/index.php
web/www/index.php: PHP script text
$ cp web/www/index.{php,rpm}
$ file web/www/index.rpm
web/www/index.rpm: PHP script text
$

So I think we can use this program to reliably detect file types,
whatever extension they may have, and filter them accordingly.


More information about the Openfontlibrary mailing list