From 079dde8835f0d8fcb3dc7d0cd6e94ba7568f5365 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Sun, 4 Dec 2011 15:48:07 -0600 Subject: [PATCH] http://code.google.com/p/web2py/issues/detail?id=553, thanks Peter --- VERSION | 2 +- gluon/html.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index d5f69327..dea84695 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.3 (2011-12-04 15:40:01) dev +Version 1.99.3 (2011-12-04 15:48:02) dev diff --git a/gluon/html.py b/gluon/html.py index 3fc5ef75..6442772b 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -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)