Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jan 8, 1998
1 parent 699f1fd commit 5375180
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions DT_Var.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
'"blah blah blah blah"', then the tag
'<!--#var spam size=10-->' inserts '"blah blah ..."'.
''' # '
__rcs_id__='$Id: DT_Var.py,v 1.7 1998/01/05 21:23:01 jim Exp $'
__rcs_id__='$Id: DT_Var.py,v 1.8 1998/01/08 20:57:34 jim Exp $'

############################################################################
# Copyright
Expand Down Expand Up @@ -150,7 +150,7 @@
# (540) 371-6909
#
############################################################################
__version__='$Revision: 1.7 $'[11:-2]
__version__='$Revision: 1.8 $'[11:-2]

from DT_Util import *

Expand Down Expand Up @@ -293,7 +293,7 @@ def sql_quote(v, name='(Unknown name)', md={}):
This is needed to securely insert values into sql
string literals in templates that generate sql.
"""
if find(c,"'") >= 0: return join(split(v,"'"),"''")
if find(v,"'") >= 0: return join(split(v,"'"),"''")
return v

special_formats={
Expand All @@ -314,6 +314,9 @@ def sql_quote(v, name='(Unknown name)', md={}):

############################################################################
# $Log: DT_Var.py,v $
# Revision 1.8 1998/01/08 20:57:34 jim
# *** empty log message ***
#
# Revision 1.7 1998/01/05 21:23:01 jim
# Added support for fmt="" to allow vars with side effects.
#
Expand Down

0 comments on commit 5375180

Please sign in to comment.