Wedge

Public area => The Pub => Bug reports => Topic started by: Arantor on February 29th, 2012, 02:03 PM

Title: SMF bug 4961 (no index.php or .htaccess file when new attach folder made)
Post by: Arantor on February 29th, 2012, 02:03 PM
This is an interesting one, if you use a new folder to store attachments in.

I don't know if Aeva does anything like that when making a new album folder, but it might be interesting to note whether it does or not. If it does, the .htaccess file is going to be different.

In fact, now that I think about it, that's not a bad idea even for Aeva - provided there is a rule to determine between thumbnails and regular files: thumbnails do not need to be blocked from being served but regular attachments probably should (so they're pushed through the code layer instead)
Title: Re: SMF bug 4961 (no index.php or .htaccess file when new attach folder made)
Post by: Arantor on April 9th, 2012, 02:05 PM
There's also a related bug in SMF about the cache folder where it won't reinstate the index.php or .htaccess files if removed from the top level cache folder.

What it might also be worth doing is setting up a web.config file for IIS which works in a similar way as I understand it (need to talk to some IIS folks about that, really - it isn't common but it should be handled if possible)
Title: Re: SMF bug 4961 (no index.php or .htaccess file when new attach folder made)
Post by: Nao on April 9th, 2012, 02:45 PM
AeMe does it, btw. :) iirc!
Title: Re: SMF bug 4961 (no index.php or .htaccess file when new attach folder made)
Post by: Arantor on April 9th, 2012, 03:00 PM
Does AeMe create these? You, sir, win an internet if it does.
Title: Re: SMF bug 4961 (no index.php or .htaccess file when new attach folder made)
Post by: Arantor on April 9th, 2012, 04:09 PM
Also, having investigated web.config files, it seems that these won't help matters because they don't seem to kick in except on .asp/.aspx files.
Title: Re: SMF bug 4961 (no index.php or .htaccess file when new attach folder made)
Post by: Nao on April 9th, 2012, 09:39 PM
I think I discussed it with Dragooon and he implemented it. So do we both win? Unless he remembers otherwise ;)
Title: Re: SMF bug 4961 (no index.php or .htaccess file when new attach folder made)
Post by: Arantor on April 9th, 2012, 09:46 PM
You both win an internet ^_^
Title: Re: SMF bug 4961 (no index.php or .htaccess file when new attach folder made)
Post by: Nao on April 10th, 2012, 12:03 PM
I already have one and it won't fit in my closet, so I'll just give it to a NGO in Africa or something if you don't mind!

Which still leaves us with the necessity to add these files indeed... But it's just as easy as @copie() :P[1]
 1. Okay, not obvious this one... Copie is French for Copy.