temporary fix for issue 570

This commit is contained in:
Massimo Di Pierro
2011-12-19 23:20:10 -06:00
parent dcd129f590
commit d111f026e1
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2011-12-19 23:15:35) stable
Version 1.99.4 (2011-12-19 23:20:09) stable
-4
View File
@@ -72,11 +72,7 @@ def call_or_redirect(f,*args):
def replace_id(url, form):
if url and not url[0] == '/' and url[:4] != 'http':
# this is here for backward compatibility
return URL(url.replace('[id]', str(form.vars.id)))
elif url:
# this allows http://..../%(id)s/%(name)s/etc.
return url % form.vars
return url
class Mail(object):