Skip to content

Commit

Permalink
[plugins] make pem certificate regexp stricter
Browse files Browse the repository at this point in the history
This was changed in de5fd69
with no explanations, revert to the previous stricter regexp,
so we can apply do_*_private_sub() without fearing false positive.
  • Loading branch information
champtar committed Apr 30, 2024
1 parent 7828892 commit 5be9805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos/report/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _node_type(st):
return ''


_certmatch = re.compile("-*BEGIN.*?-*END", re.DOTALL)
_certmatch = re.compile("-----BEGIN.*?-----END", re.DOTALL)
_cert_replace = "-----SCRUBBED"


Expand Down

0 comments on commit 5be9805

Please sign in to comment.