diff options
author | Bruce Guenter <bruce@untroubled.org> | 2008-04-17 13:16:43 -0600 |
---|---|---|
committer | Bruce Guenter <bruce@untroubled.org> | 2008-04-17 13:16:43 -0600 |
commit | 64bf159f68314540c6631b61e96d5ac2f880f80d (patch) | |
tree | 7ff25ca29053a658b6783681c28653072dbc7bb9 /lib | |
parent | f8ec121071c7149f07b71eeabe7f9e6bcc84a755 (diff) |
Fixed handling of periods (and other specials) inside quotes.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/address.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/address.cc b/lib/address.cc index e8c5522..b4e6de1 100644 --- a/lib/address.cc +++ b/lib/address.cc @@ -319,10 +319,10 @@ static mystring quote(const mystring& in) const char* ptrin = in.c_str(); bool quoted = false; for(; length; ++ptrin, ++ptrout, --length) { - if(issymbol(*ptrin)) { + if(*ptrin == QUOTE || *ptrin == ESCAPE) *ptrout++ = ESCAPE; + if(issymbol(*ptrin)) quoted = true; - } *ptrout = *ptrin; } *ptrout = 0; |