Permalink
Browse files

MINOR Disallowing more potentially active file extensions in cms/.hta…

…ccess

BUGFIX Re-allowing direct execution in sapphire/thirdparty/tinymce/plugins/spellchecker/rpc.php (necessary for cms spellchecker, was disabled by global .htaccess rule) (from r108207)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112719 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 507ade6 commit 2262f3f25e373372b8efad1d01677b6b7d4dee5b @sminnee sminnee committed Oct 18, 2010
Showing with 4 additions and 7 deletions.
  1. +4 −7 .htaccess
View
@@ -1,9 +1,6 @@
-<Files *.php>
+<FilesMatch "\.(php|php3|php4|php5|phtml|inc)$">
Deny from all
-</Files>
-<Files static-main.php>
+</FilesMatch>
+<FilesMatch "(main|static-main|rpc)\.php$">
Allow from all
-</Files>
-<Files main.php>
- Allow from all
-</Files>
+</FilesMatch>

0 comments on commit 2262f3f

Please sign in to comment.