[TYPO3-core] RFC: Bugfix/Feature #5779 (original posted on 2007-09-26!)

Dmitry Dulepov dmitry.dulepov at gmail.com
Mon Jan 4 19:19:58 CET 2010


Hi!

On 26/12/2009 13:56, Bernhard Kraft wrote:
> When this patch was originally posted to the core list (2007-09-26), some
> objections were made of which all are taken into account now. Except one
> request from Dmitry: He asked if ".htaccess" files will still be visible.
> At first I wanted to solve this with two patterns: One for "allow" and one
> for "deny" which got objected by Oliver because of the two preg_match
> statemens (in which I do not see any problem).

You don't have to. You can make a negation in regular expressions. Something like:

^(\.(?!htaccess$).*)

will exclude all dotfiles except .htaccess.
  
-- 
Dmitry Dulepov
"Trust me, I am a doctor!" (c) Gregory House, M.D.


More information about the TYPO3-team-core mailing list