http://code.google.com/p/web2py/issues/detail?id=553, thanks Peter
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 1.99.3 (2011-12-04 15:40:01) dev
|
||||
Version 1.99.3 (2011-12-04 15:48:02) dev
|
||||
|
||||
+4
-3
@@ -1904,9 +1904,10 @@ class FORM(DIV):
|
||||
elif callable(onsuccess):
|
||||
onsuccess(self)
|
||||
if next:
|
||||
if self.vars.id:
|
||||
next = next.replace('[id]',str(self.vars.id))
|
||||
next = next % self.vars
|
||||
if self.vars:
|
||||
for key,value in self.vars.items():
|
||||
next = next.replace('[%s]' % key,
|
||||
urllib.quote(str(value)))
|
||||
if not next.startswith('/'):
|
||||
next = URL(next)
|
||||
redirect(next)
|
||||
|
||||
Reference in New Issue
Block a user