mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-14 02:11:45 +00:00
minor, get the error info, if it contains CRLF
This commit is contained in:
parent
66990cf872
commit
81f27e9077
4
acme.sh
4
acme.sh
@ -2435,7 +2435,7 @@ issue() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$status" = "invalid" ] ; then
|
if [ "$status" = "invalid" ] ; then
|
||||||
error="$(echo "$response" | _egrep_o '"error":\{[^\}]*\}')"
|
error="$(echo "$response" | tr -d "\r\n" | _egrep_o '"error":\{[^\}]*\}')"
|
||||||
_debug2 error "$error"
|
_debug2 error "$error"
|
||||||
errordetail="$(echo $error | _egrep_o '"detail": *"[^"]*"' | cut -d '"' -f 4)"
|
errordetail="$(echo $error | _egrep_o '"detail": *"[^"]*"' | cut -d '"' -f 4)"
|
||||||
_debug2 errordetail "$errordetail"
|
_debug2 errordetail "$errordetail"
|
||||||
@ -2447,7 +2447,7 @@ issue() {
|
|||||||
if [ "$DEBUG" ] ; then
|
if [ "$DEBUG" ] ; then
|
||||||
if [ "$vtype" = "$VTYPE_HTTP" ] ; then
|
if [ "$vtype" = "$VTYPE_HTTP" ] ; then
|
||||||
_debug "Debug: get token url."
|
_debug "Debug: get token url."
|
||||||
_get "http://$d/.well-known/acme-challenge/$token"
|
_get "http://$d/.well-known/acme-challenge/$token" "" 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
_clearupwebbroot "$_currentRoot" "$removelevel" "$token"
|
_clearupwebbroot "$_currentRoot" "$removelevel" "$token"
|
||||||
|
Loading…
Reference in New Issue
Block a user