[cpp-sp] branch main updated: Windows: Append a '/' to the hub's URL if not in the config

Rod Widdowson rdw at steadingsoftware.com
Tue Oct 14 19:23:03 UTC 2025


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=6d4e7a38375a839a578b6dfa41f1c6491137d010

The following commit(s) were added to refs/heads/main by this push:
     new 6d4e7a38 Windows: Append a '/' to the hub's URL if not in the config
6d4e7a38 is described below

commit 6d4e7a38375a839a578b6dfa41f1c6491137d010
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Oct 14 20:21:58 2025 +0100

    Windows: Append a '/' to the hub's URL if not in the config
---
 shibsp/remoting/impl/WinHTTPRemotingService.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/shibsp/remoting/impl/WinHTTPRemotingService.cpp b/shibsp/remoting/impl/WinHTTPRemotingService.cpp
index 5cb7d624..b491a0c8 100644
--- a/shibsp/remoting/impl/WinHTTPRemotingService.cpp
+++ b/shibsp/remoting/impl/WinHTTPRemotingService.cpp
@@ -270,6 +270,13 @@ WinHTTPRemotingService::WinHTTPRemotingService(ptree& pt)
     // other wstring constructors at
     //
     wstring wURL(utf8ToUtf16(getBaseURL()));
+
+    //
+    // Add a trailing back slash if needed
+    //
+    if (wURL.c_str()[wURL.size() - 1] != L'/')
+        wURL += L'/';
+
     //
     // Split it into little bits
     //

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list