[drupal-devel] [feature] Template file extension addition to base .htaccess

Uwe Hermann drupal-devel at drupal.org
Mon Aug 22 01:14:50 UTC 2005


Issue status update for 
http://drupal.org/node/29344
Post a follow up: 
http://drupal.org/project/comments/add/29344

 Project:      Drupal
 Version:      cvs
 Component:    base system
 Category:     feature requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  tclineks
 Updated by:   Uwe Hermann
 Status:       patch (code needs review)

See also http://drupal.org/node/28776 which adds more stuff to
.htaccess.




Uwe Hermann



Previous comments:
------------------------------------------------------------------------

Sun, 21 Aug 2005 23:26:37 +0000 : tclineks

Attachment: http://drupal.org/files/issues/tpl_file_hiding.patch (439 bytes)

Here's patch/proposal to add the .tpl file extension (used for smarty
theme/module templates) to the list of those denied in the base
.htaccess file.


--- .htaccess	2005-08-22 18:22:14.799176000 +0000
+++ .htaccess_old	2005-08-22 18:22:48.287329600 +0000
@@ -3,7 +3,7 @@
 #
 # Protect files and directories from prying eyes.
-<Files ~
"(\.(inc|module|pl|sh|sql|theme|engine|xtmpl|tpl)|Entries|Repositories|Root|scripts|updates)$">
+<Files ~
"(\.(inc|module|pl|sh|sql|theme|engine|xtmpl)|Entries|Repositories|Root|scripts|updates)$">
   Order deny,allow
   Deny from all
 </Files>




------------------------------------------------------------------------

Sun, 21 Aug 2005 23:28:12 +0000 : tclineks

Attachment: http://drupal.org/files/issues/tpl_file_hiding_0.patch (439 bytes)

Ahem...




------------------------------------------------------------------------

Sun, 21 Aug 2005 23:31:47 +0000 : killes at www.drop.org

It's a patch.







More information about the drupal-devel mailing list