Skip to content

Commit

Permalink
(#MOBI-6758) Reduce term if len > 220 to handle X prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
M3te0r authored Jul 26, 2022
1 parent 33b7d52 commit 536b704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itools/database/backends/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ def _reduce_size(data):
# http://bugs.hforge.org/show_bug.cgi?id=940
if isinstance(data, str):
data = data.encode("utf-8")
if len(data) + data.count(b"\x00") > 240:
if len(data) + data.count(b"\x00") > 220:
return sha1(data).hexdigest()

# All OK, we simply return the data
Expand Down

0 comments on commit 536b704

Please sign in to comment.