From 64bf159f68314540c6631b61e96d5ac2f880f80d Mon Sep 17 00:00:00 2001 From: Bruce Guenter Date: Thu, 17 Apr 2008 13:16:43 -0600 Subject: Fixed handling of periods (and other specials) inside quotes. --- lib/address.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3