Commit 8f82aaaf authored by Christophe Dumez's avatar Christophe Dumez

- use 2000 are url max lenght limit before stop using redirect instead of 8000...

- use 2000 are url max lenght limit before stop using redirect instead of 8000 because it seems that erp5devel is crashing with 3000

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7317 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a61dca5
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">O/INCg==</string> </value>
<value> <string encoding="base64">bfINCg==</string> </value>
</item>
<item>
<key> <string>Script_magic</string> </key>
......@@ -156,10 +156,7 @@ try:\n
for k, v in kw.items() :\n
if v is not None :\n
cleanedup_kw[k] = v\n
\n
# If url is too long, we do not redirecting\n
# to avoir crash <christophe@nexedi.com>\n
if len(make_query(cleanedup_kw)) > 8119:\n
if make_query(cleanedup_kw) > 2000 :\n
cannot_redirect = 1\n
\n
# if we cannot redirect, then call the form directly.\n
......@@ -208,7 +205,7 @@ except FormValidationError, validation_errors:\n
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/portal_skins/local_erp5/Base_callDialogMethod</string> </value>
<value> <string>Script (Python):/erp5/portal_skins/erp5_core/Base_callDialogMethod</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
......
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