Skip to content

Commit 0f08f62

Browse files
authored
Merge pull request #363 from maykinmedia/do-not-overwrite-cache
Do not overwrite cache
2 parents c1a10d8 + 393ace6 commit 0f08f62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/saml2/cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def get(self, name_id, entity_id, check_not_on_or_after=True):
9696
"""
9797
cni = code(name_id)
9898
(timestamp, info) = self._db[cni][entity_id]
99+
info = info.copy()
99100
if check_not_on_or_after and time_util.after(timestamp):
100101
raise ToOld("past %s" % str(timestamp))
101102

0 commit comments

Comments
 (0)