mirror of
				https://github.com/acmesh-official/acme.sh
				synced 2025-11-04 13:55:56 +08:00 
			
		
		
		
	Merge pull request #5149 from Weishaupt/patch-1
Fix missing XML Escape in Password of INWX DNS API
This commit is contained in:
		@@ -163,6 +163,15 @@ _inwx_check_cookie() {
 | 
			
		||||
  return 1
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
_htmlEscape() {
 | 
			
		||||
  local s
 | 
			
		||||
  s=${1//&/&}
 | 
			
		||||
  s=${s//</<}
 | 
			
		||||
  s=${s//>/>}
 | 
			
		||||
  s=${s//'"'/"}
 | 
			
		||||
  printf -- %s "$s"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
_inwx_login() {
 | 
			
		||||
 | 
			
		||||
  if _inwx_check_cookie; then
 | 
			
		||||
@@ -170,6 +179,8 @@ _inwx_login() {
 | 
			
		||||
    return 0
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  XML_PASS=$(_htmlEscape "$INWX_Password")
 | 
			
		||||
 | 
			
		||||
  xml_content=$(printf '<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
  <methodCall>
 | 
			
		||||
  <methodName>account.login</methodName>
 | 
			
		||||
@@ -193,7 +204,7 @@ _inwx_login() {
 | 
			
		||||
    </value>
 | 
			
		||||
   </param>
 | 
			
		||||
  </params>
 | 
			
		||||
  </methodCall>' "$INWX_User" "$INWX_Password")
 | 
			
		||||
  </methodCall>' "$INWX_User" "$XML_PASS")
 | 
			
		||||
 | 
			
		||||
  response="$(_post "$xml_content" "$INWX_Api" "" "POST")"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user