Skip to content

Commit

Permalink
fixes #1032 for apache 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tablatronix committed Jul 23, 2015
1 parent de2e65d commit f8b8bb0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions data/uploads/.htaccess
Expand Up @@ -24,8 +24,10 @@
</IfModule>

# Deny access to all script files
<FilesMatch "(?i)\.((php[0-9]?)|(ph[0-9]?)|phtm|phtml|pl|py|jsp|asp|htm|shtml|sh|cgi|)$">
ForceType text/plain
# <FilesMatch "(?i)\.((php[0-9]?)|(ph[0-9]?)|phtm|phtml|pl|py|jsp|asp|htm|shtml|sh|cgi|)$">
# 500 error apache 1.3, case insensitive, so we have ot use this nonesense
<FilesMatch "\.(([pP][hH][pP][0-9]?)|([pP][hH][0-9]?)|[pP][hH][tT][mM]|[pP][hH][tT][mM][lL]|[pP][lL]|[pP][yY]|[jJ][sS][pP]|[aA][sS][pP]|[hH][tT][mM]|[sS][hH][tT][mM][lL]|[sS][hH]|[cC][gG][iI])$">
ForceType text/plain
Deny from all
Require all denied
</FilesMatch>
Expand Down

0 comments on commit f8b8bb0

Please sign in to comment.