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

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

From
JBJehan Bing <jehan@orb.com>
Date
Dec 22, 2011, 20:37 UTC
Message-ID
<jd04eq$9m0$1@dough.gmane.org>
Hi,

I'm getting an error when trying to look at a blob when the filename has "++" in it:

http://.../blob/13ec1624fefc23d20d0407aac3337b35844a2ceb:/foo-++.txt
And I get the following error page:
	gitprojects /
	500 - Internal Server Error
	Nested quantifiers in regex; marked by <-- HERE in 
m//test.git/blob/13ec1624fefc23d20d0407aac3337b35844a2ceb:/foo-++ <-- 
HERE .txt$/ at (eval 10) line 7.
	OPML TXT
The Apache log show the same thing:
  gitweb.cgi: Nested quantifiers in regex; marked by <-- HERE in 
m//test.git/blob/13ec1624fefc23d20d0407aac3337b35844a2ceb:/foo-++ <-- 
HERE .txt$/ at (eval 10) line 7.

It works fine if the filename has a single '+' sign (tried "foo-+.txt"). There is a same error when browsing a tree and clicking a directory with the "++"

We notice the error when looking at the Qt source code. They have a bunch of "*g++*" files and directories.

We use git-1.7.6 but updating to gitweb.cgi from 1.7.8.1 didn't fix it.
Regards,
	Jehan
Next: demerphq
Message 1 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.