aboutsummaryrefslogtreecommitdiff
path: root/docs/.htaccess
diff options
context:
space:
mode:
authorCamil Staps2015-02-07 21:06:17 +0100
committerCamil Staps2015-02-07 21:06:17 +0100
commit29955216d69ca08b69afe1ace71151839049c045 (patch)
tree48a085e24cf1e65677bbace195017f118292ecc2 /docs/.htaccess
parentAdded some documentation; added Makefile for generating docs with phpdoc (diff)
Added documentation
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