Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2018 00:01:27 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r470097 - head/www/p5-Plack-Middleware-NoMultipleSlashes
Message-ID:  <201805160001.w4G01Rr4086786@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Wed May 16 00:01:27 2018
New Revision: 470097
URL: https://svnweb.freebsd.org/changeset/ports/470097

Log:
  Fix LICENSE
  
  - Update COMMENT
  - Add NO_ARCH
  - Update pkg-descr
  - Take maintainership

Modified:
  head/www/p5-Plack-Middleware-NoMultipleSlashes/Makefile
  head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr   (contents, props changed)

Modified: head/www/p5-Plack-Middleware-NoMultipleSlashes/Makefile
==============================================================================
--- head/www/p5-Plack-Middleware-NoMultipleSlashes/Makefile	Wed May 16 00:01:22 2018	(r470096)
+++ head/www/p5-Plack-Middleware-NoMultipleSlashes/Makefile	Wed May 16 00:01:27 2018	(r470097)
@@ -6,15 +6,17 @@ CATEGORIES=	www perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Automatically remove multiple slashes in your paths
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Remove multiple slashes in your paths automatically
 
-LICENSE=	GPLv1
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	p5-Plack>=0:www/p5-Plack
-RUN_DEPENDS=	p5-Plack>=0:www/p5-Plack
+RUN_DEPENDS:=	${BUILD_DEPENDS}
 
+NO_ARCH=	yes
 USES=		perl5
 USE_PERL5=	configure
 

Modified: head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr
==============================================================================
--- head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr	Wed May 16 00:01:22 2018	(r470096)
+++ head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr	Wed May 16 00:01:27 2018	(r470097)
@@ -1,5 +1,17 @@
-Plack Middleware. By enabling this middleware, all multiple slashes in your
-requests will automatically be cut. //hello///world becomes /hello/world.
-Simple as that.
+Plack::Middleware::NoMultipleSlashes removes all multiple slashes from your
+PATH_INFO.
+
+Multiple slashes in requests are a common problem, which many share. Apparently,
+the RFC states that you should be able to expect different results from
+http://server/ and http://server// (notice the second slash), so if the
+frameworks wish to maintain RFC compatibility, they cannot remove those extra
+slashes for you.
+
+While you can handle this issue in a reverse proxy, in a rewrite module or in
+your code, I find it more comfortable to have Plack take care of it in the thin
+layer called Middlewares.
+
+By enabling this middleware, all multiple slashes in your requests will
+automatically be cut. //hello///world becomes /hello/world. Simple as that.
 
 WWW: http://search.cpan.org/dist/Plack-Middleware-NoMultipleSlashes/



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