Skip to content

Commit 761518c

Browse files
author
Pascal Wichmann
committed
Response validation: detect Django debug page
1 parent 59a7264 commit 761518c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_fileuploadvalidation/middleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def _monitor_response(self, response):
7575
MONITORING_KEYWORDS = [
7676
b'<td class="e">Configuration File (php.ini) Path </td>',
7777
b'<td class="e">PHP Extension Build </td>',
78+
b'<h2>Traceback <span class="commands"><a href="#" onclick="return switchPastebinFriendly(this);">',
7879
# b"<h2>Upload All</h2>",
7980
]
8081

0 commit comments

Comments
 (0)