projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f05ea7
)
Was treating port integer as a char.
author
Scott Cantor
<cantor.2@osu.edu>
Wed, 15 Jun 2005 04:04:01 +0000
(
04:04
+0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Wed, 15 Jun 2005 04:04:01 +0000
(
04:04
+0000)
shib-target/shib-target.cpp
patch
|
blob
|
history
diff --git
a/shib-target/shib-target.cpp
b/shib-target/shib-target.cpp
index
abaf001
..
baa54a0
100644
(file)
--- a/
shib-target/shib-target.cpp
+++ b/
shib-target/shib-target.cpp
@@
-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;
}