Commit 64f4d2eb authored by Fabien Morin's avatar Fabien Morin

add a header to be sure that captcha image will not be cached

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23445 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1f53f778
......@@ -65,7 +65,10 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>request = context.REQUEST\n
<value> <string># this is made to be sure that captcha image will not be cached\n
container.REQUEST.RESPONSE.setHeader(\'Pragma\', \'no-cache\')\n
\n
request = context.REQUEST\n
now = DateTime()\n
expire_timeout_days = 90\n
session_id = request.get(\'erp5_captcha_session_id\', None)\n
......@@ -130,6 +133,7 @@ return image_data\n
<value>
<tuple>
<string>_getattr_</string>
<string>container</string>
<string>context</string>
<string>request</string>
<string>DateTime</string>
......@@ -162,6 +166,12 @@ return image_data\n
<key> <string>id</string> </key>
<value> <string>Captcha_getCaptchaFile</string> </value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
......
259
\ No newline at end of file
261
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment