Regex hardening to fix CVE-2018-12356.
This commit is contained in:
parent
a407c10b02
commit
4a1bf7bb51
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ if ! $VALID; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if $VALID && $REVSIG; then
|
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"
|
echo "$GOODREVSIG"
|
||||||
else
|
else
|
||||||
echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null
|
echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null
|
||||||
|
|
Loading…
Reference in a new issue