[Erp5-report] r23445 - in /erp5/trunk/bt5/erp5_egov: SkinTemplateItem/portal_skins/erp5_cap...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 5 11:57:12 CEST 2008
Author: fabien
Date: Fri Sep 5 11:57:11 2008
New Revision: 23445
URL: http://svn.erp5.org?rev=23445&view=rev
Log:
add a header to be sure that captcha image will not be cached
Modified:
erp5/trunk/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_captcha/Captcha_getCaptchaFile.xml
erp5/trunk/bt5/erp5_egov/bt/revision
Modified: erp5/trunk/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_captcha/Captcha_getCaptchaFile.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_captcha/Captcha_getCaptchaFile.xml?rev=23445&r1=23444&r2=23445&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_captcha/Captcha_getCaptchaFile.xml (original)
+++ erp5/trunk/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_captcha/Captcha_getCaptchaFile.xml Fri Sep 5 11:57:11 2008
@@ -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 @@
<value>
<tuple>
<string>_getattr_</string>
+ <string>container</string>
<string>context</string>
<string>request</string>
<string>DateTime</string>
@@ -163,6 +167,12 @@
<value> <string>Captcha_getCaptchaFile</string> </value>
</item>
<item>
+ <key> <string>uid</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
Modified: erp5/trunk/bt5/erp5_egov/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_egov/bt/revision?rev=23445&r1=23444&r2=23445&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_egov/bt/revision (original)
+++ erp5/trunk/bt5/erp5_egov/bt/revision Fri Sep 5 11:57:11 2008
@@ -1,1 +1,1 @@
-259
+261
More information about the Erp5-report
mailing list