svn commit: r413934 - in head/www/hiawatha: . files

Lars Engels lme at FreeBSD.org
Sun Apr 24 10:22:49 UTC 2016


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 at 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++;
+ 		}
+ 


More information about the svn-ports-all mailing list