Skip to content

Commit 850f121

Browse files
authored
#1082 - avoid HEAD requests processing anything (#1086)
1 parent 3062503 commit 850f121

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

public_html/lists/index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
require_once dirname(__FILE__).'/admin/connect.php';
5353
include_once dirname(__FILE__).'/admin/lib.php';
5454

55+
if ($_SERVER['REQUEST_METHOD'] == 'HEAD') {
56+
print s('Not implemented');
57+
return;
58+
}
59+
5560
$I18N = new phplist_I18N();
5661
header('Access-Control-Allow-Origin: '.ACCESS_CONTROL_ALLOW_ORIGIN);
5762
if (defined('ACCESS_CONTROL_ALLOW_ORIGINS') && count(ACCESS_CONTROL_ALLOW_ORIGINS) > 1) {

0 commit comments

Comments
 (0)