git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3] Do not decode url protocol.

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 22, 2010, 17:08 UTC
Message-ID
<vpqfx0fxaeo.fsf@bauges.imag.fr>
In-Reply-To
<4C20E92B.1030405@obry.net>
Pascal Obry <pascal.obry@gmail.com> writes:
Show 6 quoted lines
> Matthieu,
>
>> Unless I missed something, this version doesn't address my earlier
>> comment:
>
> Because I do not agree.

I'm fine with disagreeing, but then you should argue. This would allow either Junio to be convinced, or me to argue back.

Show 7 quoted lines
> The three procedures:
>
> char *url_decode(const char *url)
> char *url_decode_parameter_name(const char **query)
> char *url_decode_parameter_value(const char **query)
>
> are all passed a full url (with protocol).
The caller is this (http-backend.c):
static struct string_list *get_parameters(void)
{
[...]
		while (query && *query) {
			char *name = url_decode_parameter_name(&query);
			char *value = url_decode_parameter_value(&query);
			[...]
		}

which advances "query" as the URL is decoded, hence passing query as a pointer to the argument being parsed, not to the full URL.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Pascal ObryNext: Pascal Obry
Message 4 of 5 in “Do not decode url protocol.”
  1. Do not decode url protocol.Pascal Obry, Jun 22, 2010
  2. Matthieu MoyJun 22, 2010
  3. Pascal ObryJun 22, 2010
  4. Matthieu MoyJun 22, 2010
  5. Pascal ObryJun 22, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.