Browse Source

[Minor] Add rule for presence of Content-Description header

pull/4950/head
twesterhever 2 years ago
parent
commit
3e1c8da3e9
  1. 7
      rules/regexp/headers.lua

7
rules/regexp/headers.lua

@ -903,6 +903,13 @@ reconf['HAS_ORG_HEADER'] = {
group = 'headers'
}
reconf['HAS_CD_HEADER'] = {
re = string.format('header_exists(Content-Description)'),
description = 'Has Content-Description header',
score = 0.0,
group = 'headers'
}
reconf['X_PHPOS_FAKE'] = {
re = 'X-PHP-Originating-Script=/^\\d{7}:/Hi',
description = 'Fake X-PHP-Originating-Script header',

Loading…
Cancel
Save