commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Viraj Turakhia" <virajturak...@gmail.com>
Subject Re: [LANG] StringUtils.unescapeCsv() allows unpaired embedded double-quote
Date Wed, 05 Nov 2008 06:22:49 GMT
Just curious, why is this not the right behaviour?


-v

On Tue, Nov 4, 2008 at 8:35 PM, sebb <sebbaz@gmail.com> wrote:

> Just happened to notice that StringUtils.unescapeCsv() does not check
> that embedded double-quotes occur in pairs.
>
> Should this condition be detected, and if so, what should happen?
> Throw an Exception? Return the original string untranslated?
> Just document the behaviour?
>
> At present the string <"foo"bar"> is returned as <foo"bar>.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
The first right of human is the right of EGO.
--
http://www.xperienceexperience.blogspot.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message