5 replies [Last post]
a_c_m@drupal.org's picture
Offline
Bug Finder
Joined: 01/02/2008
Juice: 288
Was this information Helpful?

No text really. Title says is all.

Makes posting code simpler.

a_c_m@drupal.org's picture
Offline
Bug Finder
Joined: 01/02/2008
Juice: 288
(15:10:36) cYu: drayen: jpg

(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

cYu
cYu's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 11/19/2007
Juice: 850
Re: (15:10:36) cYu: drayen: jpg

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.

TR
TR's picture
Online
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Re: (15:10:36) cYu: drayen: jpg

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>.
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: (15:10:36) cYu: drayen: jpg

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.

a_c_m@drupal.org's picture
Offline
Bug Finder
Joined: 01/02/2008
Juice: 288
Re: Allow .module , .info and .diff files to be attached to post

great thanks Smiling