Project

General

Profile

Feature #2013

[PATCH] mod_cgi: option to execute only chmod+x files

Added by penma about 7 years ago. Updated about 7 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
mod_cgi
Target version:
Start date:
2009-06-25
Due date:
% Done:

100%

Missing in 1.5.x:

Description

This patch adds an option that will only execute a CGI script if its +x bit is set.
If the bit is not set the script will be treated as a normal file.

Together with cgi.execute-all, this can be used to execute all files that have +x
set and to not execute all files that don't have +x set. Some other httpds do this
(example: thttpd, gatling and probably quite a lot more). It removes the need to
flag all CGIs with an extension. (Extension based handling of stuff is not UNIX at
all and belongs to Windows software.)

The default setting is "disable" and will do nothing.

Applies to a720459

lighttpd-e803990-xonly.diff View (2.32 KB) penma, 2009-06-25 18:43

Associated revisions

Revision 2558 (diff)
Added by stbuehler about 7 years ago

Add "cgi.execute-x-only" to mod_cgi, requires +x for cgi scripts (fixes #2013)

Revision 3c117059 (diff)
Added by stbuehler about 7 years ago

Add "cgi.execute-x-only" to mod_cgi, requires +x for cgi scripts (fixes #2013)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2558 152afb58-edef-0310-8abb-c4023f1b3aa9

Revision 2559 (diff)
Added by stbuehler about 7 years ago

Add "cgi.execute-x-only" to mod_cgi, requires +x for cgi scripts (fixes #2013)

History

#1 Updated by stbuehler about 7 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2558.

Also available in: Atom