Project

General

Profile

Actions

Feature #3036

closed

The on/off keywords in boolean configuration options is inconsistent, which might be misleading and error-prone.

Added by tow-conf over 3 years ago. Updated over 3 years ago.

Status:
Fixed
Priority:
Low
Category:
documentation
Target version:
ASK QUESTIONS IN Forums:
No

Description

In the document of configuration option "extforward.params", users could use "0/1" or "enable/disable" to control the on/off of this function. However, in option "server.http-parseopts", only "enable/disable" could be used. This might be an inconsistence between different configuration options with similar value type. In case of negligence or conventional thinking, it is better to unify the possible values of all boolean options.

Actions #1

Updated by tow-conf over 3 years ago

A similar situation also in option "proxy.forwarded".

Actions #2

Updated by gstrauss over 3 years ago

  • Status changed from New to Patch Pending
  • Priority changed from Normal to Low
  • Target version changed from 1.4.x to 1.4.56

Thanks for pointing that out.

The historical code accepted only "enable" or "disable".

In recent lighttpd versions, I had created some shared code to translate additional string values to boolean while I was writing new code.

I have now gone back through the historical code to more consistently use the shared code for parsing boolean values from user-provided configuration.

Actions #3

Updated by gstrauss over 3 years ago

  • Status changed from Patch Pending to Fixed
Actions

Also available in: Atom