From 767302c21144d4a42c25ac36599ddc8bee8a891d Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Sat, 28 Mar 2026 11:52:31 -0400 Subject: [PATCH] hotfix URI parsing The following changes since commit 111ceaa651dea6a6c82555e8e7f0fcfb2b18fbfb: backport: handle non-exceptions in `panic` (2026-03-26 11:42:34 -0400) are available in the Git repository at: https://gitlab.com/phdavis1027/sgx-bwmsgsv2.git 7658ce847544ccb59c6ccd4ce9f9717d5582a75e for you to fetch changes up to 7658ce847544ccb59c6ccd4ce9f9717d5582a75e: URI.parse all the things (2026-03-28 11:43:25 -0400) ---------------------------------------------------------------- Phillip Davis (2): explicitly verify_peer in `call_catapult` URI.parse all the things sgx-bwmsgsv2.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- sgx-bwmsgsv2.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sgx-bwmsgsv2.rb b/sgx-bwmsgsv2.rb index c2cc46007dab43847426cdf4ea6d9db96d0aa49a..e9a29d999321d70dca6d0cfa47cad7c4a4b05e55 100755 --- a/sgx-bwmsgsv2.rb +++ b/sgx-bwmsgsv2.rb @@ -365,7 +365,7 @@ module SGXbwmsgsv2 end EM::HttpRequest.new( - url_prefix + pth + URI.parse(url_prefix + pth), tls: {verify_peer: true} ).public_send( "a#{m}", head: { @@ -409,7 +409,7 @@ module SGXbwmsgsv2 return to_catapult(s, nil, num_dest, user_id, token, secret, usern) end - EM::HttpRequest.new(un.text, tls: {verify_peer: true}).ahead.then { |http| + EM::HttpRequest.new(URI.parse(un.text), tls: {verify_peer: true}).ahead.then { |http| # If content is too large, or MIME type is not supported, place the link inside the body and do not send MMS. if http.response_header["CONTENT_LENGTH"].to_i > 3500000 || !MMS_MIME_TYPES.include?(http.response_header["CONTENT_TYPE"])