fix script context handling

This commit is contained in:
Somdev Sangwan
2019-04-19 08:58:44 +05:30
committed by GitHub
parent fbb9261622
commit 2979b597de

View File

@@ -14,6 +14,7 @@ def filterChecker(url, params, headers, GET, delay, occurences, timeout, encodin
if context == 'comment': if context == 'comment':
environments.add('-->') environments.add('-->')
elif context == 'script': elif context == 'script':
environments.add(occurences[i]['details']['quote'])
environments.add('</scRipT/>') environments.add('</scRipT/>')
elif context == 'attribute': elif context == 'attribute':
if occurences[i]['details']['type'] == 'value': if occurences[i]['details']['type'] == 'value':