Project

General

Profile

Feature #3036

closed

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

Added by tow-conf 17 days ago. Updated 17 days 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.

#1

Updated by tow-conf 17 days ago

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

#2

Updated by gstrauss 17 days 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.

#3

Updated by gstrauss 17 days ago

  • Status changed from Patch Pending to Fixed

Also available in: Atom