Skip to content

Commit 59a7264

Browse files
author
Pascal Wichmann
committed
Response validation: match for HTML tags as well
1 parent affab3d commit 59a7264

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_fileuploadvalidation/middleware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def _monitor_request(self, request):
7373
def _monitor_response(self, response):
7474

7575
MONITORING_KEYWORDS = [
76-
b"Configuration File (php.ini) Path",
77-
b"PHP Extension Build",
76+
b'<td class="e">Configuration File (php.ini) Path </td>',
77+
b'<td class="e">PHP Extension Build </td>',
7878
# b"<h2>Upload All</h2>",
7979
]
8080

0 commit comments

Comments
 (0)