[Spice-devel] [PATCH v2 spice-gtk 1/3] spice-session/spice_uri_parse: fail if a key is seen twice

Marc-André Lureau marcandre.lureau at gmail.com
Thu Jan 5 03:49:20 PST 2012


On Thu, Jan 5, 2012 at 12:34 PM, Alon Levy <alevy at redhat.com> wrote:

> On Thu, Jan 05, 2012 at 12:25:12PM +0100, Marc-André Lureau wrote:
> > On Tue, Jan 3, 2012 at 5:52 PM, Alon Levy <alevy at redhat.com> wrote:
> >
> > > +    int punctuation = 0;
> > >
> >
> > what is this for?
>
> So we don't accept something like:
> spice://hostname?tls-port=1234:1233        INVALID
>
> so you count the number of "?:&" (punctuation) seen, if you see a ':'
> and it isn't the first, fail. This also catches double colon:
> spice://hostname:1234:1235                 INVALID
>
>
Yeah, I figured it was used in second patch, could you move it there?


-- 
Marc-André Lureau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120105/8ed3cc67/attachment.htm>


More information about the Spice-devel mailing list