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:
4144ba0
)
Add relay state to exception only if non-empty
author
Scott Cantor
<cantor.2@osu.edu>
Thu, 29 Nov 2012 01:55:48 +0000
(
01:55
+0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Thu, 29 Nov 2012 01:55:48 +0000
(
01:55
+0000)
shibsp/handler/impl/AssertionConsumerService.cpp
patch
|
blob
|
history
diff --git
a/shibsp/handler/impl/AssertionConsumerService.cpp
b/shibsp/handler/impl/AssertionConsumerService.cpp
index
901d826
..
881e887
100644
(file)
--- a/
shibsp/handler/impl/AssertionConsumerService.cpp
+++ b/
shibsp/handler/impl/AssertionConsumerService.cpp
@@
-251,8
+251,10
@@
pair<bool,long> AssertionConsumerService::processMessage(
return make_pair(true, httpResponse.sendRedirect(relayState.c_str()));
}
}
-
- ex.addProperty("RelayState", relayState.c_str());
+
+ if (!relayState.empty()) {
+ ex.addProperty("RelayState", relayState.c_str());
+ }
// Log the error.
try {