Skip to content

Commit c9f2622

Browse files
committed
Cut the URL elements to the maximum size they can actually have according to models.py (fix Data too long for column 'query')
1 parent 9751411 commit c9f2622

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dojo/tools/zap/parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ def get_items(self, tree, test):
8585
for i in item.items:
8686
parts = urlparse(i['uri'])
8787
find.unsaved_endpoints.append(Endpoint(protocol=parts.scheme,
88-
host=parts.netloc,
89-
path=parts.path,
90-
query=parts.query,
91-
fragment=parts.fragment,
88+
host=parts.netloc[:500],
89+
path=parts.path[:500],
90+
query=parts.query[:1000],
91+
fragment=parts.fragment[:500],
9292
product=test.engagement.product))
9393
items.append(find)
9494
return items

0 commit comments

Comments
 (0)