We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16e2b8f + 2875ace commit 7c9c33fCopy full SHA for 7c9c33f
dongtai_web/views/vul_details.py
@@ -143,7 +143,10 @@ def parse_graphy(self, graphy):
143
_item = f"{method['callerClass']}.{method['callerMethod']}()"
144
filename = method['callerClass']
145
line_number = method['callerLineNumber']
146
- if method['tag'] == 'source':
+ # For compatibility with old data
147
+ # (method_counts > 1 and i == 0)
148
+ # it should remove after serval versions
149
+ if method['tag'] == 'source' or (method_counts > 1 and i == 0):
150
data_type = _('Source method')
151
elif method['tag'] == 'sink':
152
data_type = _('Hazardous method')
0 commit comments