From a314de4ce74233687d651289ba898146fdf92300 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Wed, 19 Jan 2011 11:52:55 +0000 Subject: [PATCH] Store_SQL: Fix deletion of keys from SQL. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2718 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Store/SQL.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/SimpleSAML/Store/SQL.php b/lib/SimpleSAML/Store/SQL.php index b555e46ce..7b837c064 100644 --- a/lib/SimpleSAML/Store/SQL.php +++ b/lib/SimpleSAML/Store/SQL.php @@ -306,6 +306,10 @@ class SimpleSAML_Store_SQL extends SimpleSAML_Store { assert('is_string($type)'); assert('is_string($key)'); + if (strlen($key) > 50) { + $key = sha1($key); + } + $data = array( '_type' => $type, '_key' => $key, -- GitLab