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.
1 parent 183b2f0 commit 2875aceCopy full SHA for 2875ace
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