From 8f2dc299fb060ec1d5cfad425b1c204bae23d996 Mon Sep 17 00:00:00 2001
From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Date: Fri, 12 Aug 2016 07:53:51 +0200
Subject: [PATCH] Bug 17110: [EXAMPLE PATCH] CSRF expiry of 10 seconds in
 opac-sendbasket
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This patch should NOT be pushed !
It is used to test the first patch only.

Signed-off-by: Marc Véron <veron@veron.ch>
---
 opac/opac-sendbasket.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/opac/opac-sendbasket.pl b/opac/opac-sendbasket.pl
index 6b9ba43..57bc5ec 100755
--- a/opac/opac-sendbasket.pl
+++ b/opac/opac-sendbasket.pl
@@ -58,6 +58,7 @@ if ( $email_add ) {
         id     => C4::Context->userenv->{id},
         secret => md5_base64( C4::Context->config('pass') ),
         token  => scalar $query->param('csrf_token'),
+        MaxAge => 10,
     });
 }
 
-- 
2.1.4