Permalink
Browse files

fix in web.reparam: making a copy of dictionary because eval mangles it

  • Loading branch information...
1 parent d042fdc commit 62d9019a04b559bd896a744002d63d02212ccb8e @anandology anandology committed Dec 15, 2007
Showing with 2 additions and 0 deletions.
  1. +2 −0 web/db.py
View
@@ -147,6 +147,8 @@ def reparam(string_, dictionary):
>>> reparam("s = $s", dict(s=True))
<sql: "s = 't'">
"""
+ # making a copy of dictionary because eval mangles it
+ dictionary = dictionary.copy()
vals = []
result = []
for live, chunk in _interpolate(string_):

0 comments on commit 62d9019

Please sign in to comment.