Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2016 10:22:47 +0000 (UTC)
From:      Lars Engels <lme@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r413934 - in head/www/hiawatha: . files
Message-ID:  <201604241022.u3OAMlU1063378@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lme
Date: Sun Apr 24 10:22:47 2016
New Revision: 413934
URL: https://svnweb.freebsd.org/changeset/ports/413934

Log:
  - Add a fix to enable HideProxy function
  - Bump PORTREVISION
  
  PR:		208973
  Submitted by:	Fred <fred@trinitech.co.uk>
  Approved by:	maintainer
  Sponsored by:	Essen Linuxhotel Hackathon 2016

Added:
  head/www/hiawatha/files/patch-src__http.c   (contents, props changed)
Modified:
  head/www/hiawatha/Makefile

Modified: head/www/hiawatha/Makefile
==============================================================================
--- head/www/hiawatha/Makefile	Sun Apr 24 10:19:31 2016	(r413933)
+++ head/www/hiawatha/Makefile	Sun Apr 24 10:22:47 2016	(r413934)
@@ -3,6 +3,7 @@
 
 PORTNAME=	hiawatha
 PORTVERSION=	10.1
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	https://www.hiawatha-webserver.org/files/
 

Added: head/www/hiawatha/files/patch-src__http.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/hiawatha/files/patch-src__http.c	Sun Apr 24 10:22:47 2016	(r413934)
@@ -0,0 +1,13 @@
+--- src/http.c.orig	2015-12-28 15:05:15 UTC
++++ src/http.c
+@@ -845,8 +845,8 @@ int last_forwarded_ip(t_http_header *htt
+ 		/* Forwarded header
+ 		 */
+ 		begin = NULL;
+-		while ((forwarded = strcasestr(forwarded, "for=")) == NULL) {
+-			begin = forwarded;
++		while ((forwarded = strcasestr(forwarded, "for=")) != NULL) {
++			begin = forwarded + 4;
+ 			forwarded++;
+ 		}
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604241022.u3OAMlU1063378>