Skip to content

Commit

Permalink
.htaccess: Block access to Vim backup files correctly
Browse files Browse the repository at this point in the history
Fixes #937.
  • Loading branch information
mathiasbynens committed Feb 5, 2012
1 parent ab117fc commit 4d65006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ AddCharset utf-8 .css .js .xml .json .rss .atom
# Block access to backup and source files
# This files may be left by some text/html editors and
# pose a great security danger, when someone can access them
<FilesMatch "\.(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp|dist)$">
<FilesMatch "(\.(bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$">
Order allow,deny
Deny from all
Satisfy All
Expand Down

0 comments on commit 4d65006

Please sign in to comment.