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

Re: "Nested quantifiers" error in gitweb with "++" in the filename

From
Ddemerphq <demerphq@gmail.com>
Date
Dec 23, 2011, 16:02 UTC
Message-ID
<CANgJU+VA9s9t0c8D0P_DesbSDQRBQ6v913KixKQAuiy8jZsdzQ@mail.gmail.com>
In-Reply-To
<jd04eq$9m0$1@dough.gmane.org>
On 22 December 2011 21:37, Jehan Bing <jehan@orb.com> wrote:
Show 6 quoted lines
> Hi,
>
> I'm getting an error when trying to look at a blob when the filename has
> "++" in it:
>
> http://.../blob/13ec1624fefc23d20d0407aac3337b35844a2ceb:/foo-++.txt

This error comes because the filename is being used a pattern without being protected by a quotemeta.

Interestingly, a later version of perl would not have this problem as ++ is a legal quantifier as of 5.10, nevertheless it probably wouldnt do what you expected.

yves
-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
Previous: Jehan BingNext: Jehan Bing
Message 2 of 3 in “"Nested quantifiers" error in gitweb with "++" in the filename”
  1. Jehan BingDec 22, 2011
  2. demerphqDec 23, 2011
  3. Jehan BingDec 23, 2011

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.