Skip to content

Commit 1a9ba60

Browse files
committed
Merge pull request #47 from chagochkin/master
Bugfix
2 parents 4ca4201 + 30ea4bf commit 1a9ba60

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/onelogin/saml2/logout_request.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,14 @@ def is_valid(self, request_data):
278278
destination = dom.get('Destination')
279279
if destination != '':
280280
if current_url not in destination:
281-
raise Exception('The LogoutRequest was received at $currentURL instead of $destination')
281+
raise Exception(
282+
'The LogoutRequest was received at '
283+
'%(currentURL)s instead of %(destination)s' %
284+
{
285+
'currentURL': current_url,
286+
'destination': destination,
287+
}
288+
)
282289

283290
# Check issuer
284291
issuer = OneLogin_Saml2_Logout_Request.get_issuer(dom)

0 commit comments

Comments
 (0)