svn commit: r315769 - in head/www/p5-HTTP-Message: . files
Frederic Culot
culot at FreeBSD.org
Tue Apr 9 06:31:09 UTC 2013
Author: culot
Date: Tue Apr 9 06:31:08 2013
New Revision: 315769
URL: http://svnweb.freebsd.org/changeset/ports/315769
Log:
- Add a patch to fix the parsing of HTTP messages in case they contain
X-Meta field names
Submitted by: Cyril Nguyen Huu <cyril at ci0.org> (via private email)
Obtained from: OpenBSD
Approved by: portmgr (bapt)
Added:
head/www/p5-HTTP-Message/files/
head/www/p5-HTTP-Message/files/patch-lib_HTTP_Headers_pm (contents, props changed)
Modified:
head/www/p5-HTTP-Message/Makefile
Modified: head/www/p5-HTTP-Message/Makefile
==============================================================================
--- head/www/p5-HTTP-Message/Makefile Tue Apr 9 05:47:54 2013 (r315768)
+++ head/www/p5-HTTP-Message/Makefile Tue Apr 9 06:31:08 2013 (r315769)
@@ -3,7 +3,7 @@
PORTNAME= HTTP-Message
PORTVERSION= 6.06
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -32,4 +32,7 @@ MAN3= HTTP::Config.3 \
HTTP::Response.3 \
HTTP::Status.3
+post-patch:
+ @${RM} ${WRKSRC}/lib/HTTP/Headers.pm.orig
+
.include <bsd.port.mk>
Added: head/www/p5-HTTP-Message/files/patch-lib_HTTP_Headers_pm
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/p5-HTTP-Message/files/patch-lib_HTTP_Headers_pm Tue Apr 9 06:31:08 2013 (r315769)
@@ -0,0 +1,11 @@
+--- lib/HTTP/Headers.pm.orig 2013-04-08 11:36:07.000000000 -0400
++++ lib/HTTP/Headers.pm 2013-04-08 11:42:27.000000000 -0400
+@@ -150,7 +150,7 @@
+ my($self, $field, $val, $op) = @_;
+
+ Carp::croak("Illegal field name '$field'")
+- if rindex($field, ':') > 1 || !length($field);
++ if ( $field !~ /^X-Meta/ && rindex($field, ':') > 1) || !length($field);
+
+ unless ($field =~ /^:/) {
+ $field =~ tr/_/-/ if $TRANSLATE_UNDERSCORE;
More information about the svn-ports-all
mailing list