Re: Why PHP is parsing not only .php

2003-04-04 Thread François TOURDE
Chris Francy <[EMAIL PROTECTED]> writes: > You should probably be using the phps extension with the > AddType application/x-httpd-php-source .phps instead of renameing them > to have a .txt extension. > That's exactly what I do, using a symlink. So my progs are available as progs and as source

Re: Why PHP is parsing not only .php

2003-04-04 Thread François TOURDE
Chris Francy <[EMAIL PROTECTED]> writes: > You should probably be using the phps extension with the > AddType application/x-httpd-php-source .phps instead of renameing them > to have a .txt extension. > That's exactly what I do, using a symlink. So my progs are available as progs and as source

Re: [despammed] Re: Why PHP is parsing not only .php

2003-04-03 Thread Ed McMan
Thursday, April 3, 2003, 1:44:09 PM, Chris Francy (Chris) wrote: Chris> This is expected behaviour... Please see the secion about files with Chris> multiple extensions on the page Chris> http://httpd.apache.org/docs/mod/mod_mime.html#addencoding Chris> --- Chris> If more than one extension is g

Re: [despammed] Re: Why PHP is parsing not only .php

2003-04-03 Thread Ed McMan
Thursday, April 3, 2003, 1:44:09 PM, Chris Francy (Chris) wrote: Chris> This is expected behaviour... Please see the secion about files with Chris> multiple extensions on the page Chris> http://httpd.apache.org/docs/mod/mod_mime.html#addencoding Chris> --- Chris> If more than one extension is g

Re: Why PHP is parsing not only .php

2003-04-03 Thread Chris Francy
This is expected behaviour... Please see the secion about files with multiple extensions on the page http://httpd.apache.org/docs/mod/mod_mime.html#addencoding --- If more than one extension is given which maps onto the same type of meta-information, then the one to the right will be used. For e

Re: Why PHP is parsing not only .php

2003-04-03 Thread Chris Francy
This is expected behaviour... Please see the secion about files with multiple extensions on the page http://httpd.apache.org/docs/mod/mod_mime.html#addencoding --- If more than one extension is given which maps onto the same type of meta-information, then the one to the right will be used. For e

Re: Why PHP is parsing not only .php

2003-04-03 Thread Bart-Jan Vrielink
On Thu, 2003-04-03 at 12:43, Yoss wrote: > Why PHP is parsing file with ".php.txt" extension? I think that is a > security hole, because in easy way we can imagine that thereis php > script that should allow to upload only .txt files. 99% of coders will > check this with /.+?\.txt$/ because this i

Re: Why PHP is parsing not only .php

2003-04-03 Thread Bart-Jan Vrielink
On Thu, 2003-04-03 at 12:43, Yoss wrote: > Why PHP is parsing file with ".php.txt" extension? I think that is a > security hole, because in easy way we can imagine that thereis php > script that should allow to upload only .txt files. 99% of coders will > check this with /.+?\.txt$/ because this i

Why PHP is parsing not only .php

2003-04-03 Thread Yoss
Hello. Please, take a look at this: http://www.milc.com.pl/aa.php.txt Why PHP is parsing file with ".php.txt" extension? I think that is a security hole, because in easy way we can imagine that thereis php script that should allow to upload only .txt files. 99% of coders will check this with /.+?\

Why PHP is parsing not only .php

2003-04-03 Thread Yoss
Hello. Please, take a look at this: http://www.milc.com.pl/aa.php.txt Why PHP is parsing file with ".php.txt" extension? I think that is a security hole, because in easy way we can imagine that thereis php script that should allow to upload only .txt files. 99% of coders will check this with /.+?\