I wanted to include a curly brace in my adp page and found that the
templating system would break. It seems they forgot to quote curly
braces so I added that.
Where it would previously say:
# protect double quotes, brackets, the dollar sign, and backslash
regsub -all {[][""\$]} $remaining {\&} quoted
I changed it to say
adp_append_string [adp_quote_chunk $remaining]
and added the following proc
ad_proc -private template::adp_quote_chunk { chunk } {
Return the given adp chunk with all square brackets and curly braces
dollar signs, and double quotes quoted (preceded by a backslash).
@author Peter Marklund (peter@collaboraid.biz)
@creation-date 2002-10-15
} {
regsub -all {[][{}"\$]} $chunk {\&} quoted
return $quoted
}
I was just wondering if there is any performance concern in adding a
proc here. I guess it's slightly less efficient than the inline
regsub. Otherwise, if what I've done seems ok I'll go ahead and commit
this.