temporary fix for issue 570
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 1.99.4 (2011-12-19 23:15:35) stable
|
Version 1.99.4 (2011-12-19 23:20:09) stable
|
||||||
|
|||||||
@@ -72,11 +72,7 @@ def call_or_redirect(f,*args):
|
|||||||
|
|
||||||
def replace_id(url, form):
|
def replace_id(url, form):
|
||||||
if url and not url[0] == '/' and url[:4] != 'http':
|
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)))
|
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
|
return url
|
||||||
|
|
||||||
class Mail(object):
|
class Mail(object):
|
||||||
|
|||||||
Reference in New Issue
Block a user