aboutsummaryrefslogtreecommitdiff
path: root/docs/.htaccess
diff options
context:
space:
mode:
Diffstat (limited to 'docs/.htaccess')
-rw-r--r--docs/.htaccess5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/.htaccess b/docs/.htaccess
new file mode 100644
index 0000000..7b01f9b
--- /dev/null
+++ b/docs/.htaccess
@@ -0,0 +1,5 @@
+# Fixes a vulnerability in CentOS: http://stackoverflow.com/questions/20533279/prevent-php-from-parsing-non-php-files-such-as-somefile-php-txt
+<FilesMatch \.php\.txt$>
+ RemoveHandler .php
+ ForceType text/plain
+</FilesMatch> \ No newline at end of file