Project

General

Profile

Bug #1968

Delimiting colon, ':', remains when stripping port for SERVER_NAME

Added by presbrey over 8 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
2009-04-27
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:

Description

When lighttpd is listening on a non-standard port for a given scheme (80 for http, 443 for https), the colon and port number needs to be stripped from the Host header when creating the SERVER_NAME environment variable.

The current implementation (r2459) chops the port number but leaves the colon at the end of the server name.

An example patch (tested) is attached.

Associated revisions

Revision 2492 (diff)
Added by stbuehler over 8 years ago

Fix SERVER_NAME port stripping (fixes #1968)

Revision ecfdc609 (diff)
Added by stbuehler over 8 years ago

Fix SERVER_NAME port stripping (fixes #1968)

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

Revision 2493 (diff)
Added by stbuehler over 8 years ago

Fix SERVER_NAME port stripping (fixes #1968)

History

#1 Updated by stbuehler over 8 years ago

  • Target version set to 1.4.23

#2 Updated by stbuehler over 8 years ago

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

Applied in changeset r2492.

Also available in: Atom