Allow .module , .info and .diff files to be attached to posts on this website

Posts: 88
Joined: 01/02/2008
Bug Finder

No text really. Title says is all.

Makes posting code simpler.

Posts: 88
Joined: 01/02/2008
Bug Finder

(15:10:36) cYu: drayen: jpg jpeg gif png txt html doc xls pdf ppt pps odt ods odp cif zip tar gz diff xml

Ok so just the .info and .module then Smiling

Posts: 304
Joined: 11/19/2007
Bug FinderGetting busy with the Ubercode.

If there aren't reasons, security or otherwise, for blocking certain file types....I also wouldn't mind seeing .install, .inc, .php, .patch, .css, and .js added to the list.

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

Well, yes there are security reasons. These are blocked by .htaccess because you don't want to allow people to download the raw source code for your site implementation! (.module, .php, .js etc.). I guess it's possible to allow these file types only for certain subdirectories (although I'd suggest thinking very hard about code injection attacks before doing this), but is it really a problem to just zip them up before you post? Saves space/bandwidth at ubercart.org that way too.

--

<tr>.

Posts: 5379
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

I'll add in .patch to the list (since diff already exists), but for the time being I'm leaving out code files for the reasons posted by TR.

Posts: 88
Joined: 01/02/2008
Bug Finder

great thanks Smiling