Skip to content

Commit 7da34b9

Browse files
committed
Revert "Merge pull request #148 from casdr/hotfix-droopy-block-index-php"
This reverts commit bae43d7, reversing changes made to 3e0549c.
1 parent bae43d7 commit 7da34b9

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

AUTHORS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Contributors for modifications:
2222
# herr-gabriel
2323
# Jess Stubenbord
2424
# Mike Weaver
25-
# casdr
2625
# ... and all others I might have forgotten.
2726

2827

piratebox/piratebox/bin/droopy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Licensed under the New BSD License.
77

88
# Changelog
9-
# 20160417 * Block index.php uploads
109
# 20131121 * Update HTML/CSS for mobile devices
1110
# * Add HTTPS support
1211
# * Add HTTP basic authentication
@@ -837,7 +836,7 @@ class HTTPUploadHandler(BaseHTTPServer.BaseHTTPRequestHandler):
837836
continue
838837

839838

840-
if filename.lower() == "index.html" or filename.lower() == "index.htm" or filename.lower() == "index.php":
839+
if filename.lower() == "index.html" or filename.lower() == "index.htm":
841840
self.send_response(303)
842841
self.send_header('Location', '/')
843842
self.end_headers()

0 commit comments

Comments
 (0)