Was treating port integer as a char.
authorScott Cantor <cantor.2@osu.edu>
Wed, 15 Jun 2005 04:04:01 +0000 (04:04 +0000)
committerScott Cantor <cantor.2@osu.edu>
Wed, 15 Jun 2005 04:04:01 +0000 (04:04 +0000)
shib-target/shib-target.cpp

index abaf001..baa54a0 100644 (file)
@@ -897,8 +897,11 @@ void ShibTargetPriv::get_application(ShibTarget* st, const string& protocol, con
 
   // Compute the full target URL
   st->m_url = protocol + "://" + hostname;
-  if ((protocol == "http" && port != 80) || (protocol == "https" && port != 443))
-    st->m_url += ":" + port;
+  if ((protocol == "http" && port != 80) || (protocol == "https" && port != 443)) {
+       ostringstream portstr;
+       portstr << port;
+    st->m_url += ":" + portstr.str();
+  }
   st->m_url += uri;
 }