diff options
author | Jaime Pérez <jaime.perez@uninett.no> | 2016-07-04 14:13:34 +0200 |
---|---|---|
committer | Jaime Pérez <jaime.perez@uninett.no> | 2016-07-04 14:13:34 +0200 |
commit | 0b33b995e855511924fc415b7ed9b031f40497a3 (patch) | |
tree | 08b91be5a6e1c0796892b85fdc85f43451ce894d /lib/SimpleSAML/SessionHandlerPHP.php | |
parent | 400753dc06935268b62ed9b03ed47f348e9a646a (diff) | |
download | simplesamlphp-0b33b995e855511924fc415b7ed9b031f40497a3.zip simplesamlphp-0b33b995e855511924fc415b7ed9b031f40497a3.tar.gz simplesamlphp-0b33b995e855511924fc415b7ed9b031f40497a3.tar.bz2 |
Make exception message when setting secure PHP session cookies through an insecure channel coincident with the message in SimpleSAML\Utils\HTTP::setCookie().
Diffstat (limited to 'lib/SimpleSAML/SessionHandlerPHP.php')
-rw-r--r-- | lib/SimpleSAML/SessionHandlerPHP.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SimpleSAML/SessionHandlerPHP.php b/lib/SimpleSAML/SessionHandlerPHP.php index abdb061..8947296 100644 --- a/lib/SimpleSAML/SessionHandlerPHP.php +++ b/lib/SimpleSAML/SessionHandlerPHP.php @@ -323,7 +323,7 @@ class SimpleSAML_SessionHandlerPHP extends SimpleSAML_SessionHandler if ($cookieParams['secure'] && !\SimpleSAML\Utils\HTTP::isHTTPS()) { throw new \SimpleSAML\Error\CannotSetCookie( - 'Secure cookies not allowed on http.', + 'Setting secure cookie on plain HTTP is not allowed.', \SimpleSAML\Error\CannotSetCookie::SECURE_COOKIE ); } |