Merge pull request #1488 from dmchaledev/vuln_render_fix

#1476-#1480-#1487 Fix, setting fallback for Nuclei variable and fixing JS errors in Vulnerabilities page
This commit is contained in:
Yogesh Ojha
2025-02-24 06:33:11 +05:30
committed by GitHub
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -3671,7 +3671,7 @@ def parse_nuclei_result(line):
'type': line['type'],
'severity': NUCLEI_SEVERITY_MAP[line['info'].get('severity', 'unknown')],
'template': line['template'],
'template_url': line['template-url'],
'template_url': line.get('template-url', []),
'template_id': line['template-id'],
'description': line['info'].get('description', ''),
'matcher_name': line.get('matcher-name', ''),
@@ -1752,18 +1752,18 @@ $(document).ready(function() {
const encodedURLData = htmlEncode(data);
if (data.toLowerCase().startsWith('http')) {
return `<a href="${encodedData}"
return `<a href="${encodedURLData}"
target="_blank"
rel="noopener noreferrer"
class="text-danger">
${split_into_lines(encodedData, 150)}
${split_into_lines(encodedURLData, 150)}
</a>`;
}
}
return htmlEncode(data || '');
},
"targets": 11,
}
},
{
"render": function ( data, type, row ) {
if (data){
@@ -199,18 +199,18 @@ $(document).ready(function() {
const encodedURLData = htmlEncode(data);
if (data.toLowerCase().startsWith('http')) {
return `<a href="${encodedData}"
return `<a href="${encodedURLData}"
target="_blank"
rel="noopener noreferrer"
class="text-danger">
${split_into_lines(encodedData, 150)}
${split_into_lines(encodedURLData, 150)}
</a>`;
}
}
return htmlEncode(data || '');
},
"targets": 11,
}
},
{
"render": function ( data, type, row ) {
if (data){
+3 -3
View File
@@ -1512,18 +1512,18 @@ $(document).ready(function(){
const encodedURLData = htmlEncode(data);
if (data.toLowerCase().startsWith('http')) {
return `<a href="${encodedData}"
return `<a href="${encodedURLData}"
target="_blank"
rel="noopener noreferrer"
class="text-danger">
${split_into_lines(encodedData, 150)}
${split_into_lines(encodedURLData, 150)}
</a>`;
}
}
return htmlEncode(data || '');
},
"targets": 11,
}
},
{
"render": function(data, type, row) {
if (data) {