Index: .htaccess
===================================================================
RCS file: /cvs/drupal/drupal/.htaccess,v
retrieving revision 1.81.2.3
diff -u -p -r1.81.2.3 .htaccess
--- .htaccess	21 Sep 2007 12:24:22 -0000	1.81.2.3
+++ .htaccess	5 Feb 2008 04:22:42 -0000
@@ -3,7 +3,7 @@
 #
 
 # Protect files and directories from prying eyes.
-<FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
+<FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(CHANGELOG\.txt|COPYRIGHT\.txt|INSTALL\.txt|LICENSE\.txt|MAINTAINERS\.txt|UPGRADE\.txt|README\.txt|code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
   Order allow,deny
 </FilesMatch>
 
@@ -15,6 +15,7 @@ Options +FollowSymLinks
 
 # Customized error messages.
 ErrorDocument 404 /index.php
+ErrorDocument 403 /index.php
 
 # Set the default handler.
 DirectoryIndex index.php
Index: modules/system/system.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.module,v
retrieving revision 1.440.2.23
diff -u -p -r1.440.2.23 system.module
--- modules/system/system.module	6 Dec 2007 20:23:24 -0000	1.440.2.23
+++ modules/system/system.module	5 Feb 2008 04:22:43 -0000
@@ -84,6 +84,16 @@ function system_elements() {
 }
 
 /**
+ * Implementation of hook_init()
+ */
+function system_init() {
+  if ($_SERVER['REDIRECT_STATUS'] == 403) {
+    drupal_access_denied();
+    exit;
+  }
+}
+
+/**
  * Implementation of hook_menu().
  */
 function system_menu($may_cache) {
