Skip to content

Commit

Permalink
Fix CVE-2018-12356 by hardening the regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskyS committed Jun 17, 2018
1 parent 78ac3db commit 3d1b510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/verify-commits/gpg.sh
Expand Up @@ -26,7 +26,7 @@ if ! $VALID; then
exit 1
fi
if $VALID && $REVSIG; then
echo "$INPUT" | gpg --trust-model always "$@" | grep "\[GNUPG:\] \(NEWSIG\|SIG_ID\|VALIDSIG\)" 2>/dev/null
echo "$INPUT" | gpg --trust-model always "$@" | grep "^\[GNUPG:\] \(NEWSIG\|SIG_ID\|VALIDSIG\)" 2>/dev/null
echo "$GOODREVSIG"
else
echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null
Expand Down

0 comments on commit 3d1b510

Please sign in to comment.