Index: head/www/p5-Plack-Middleware-NoMultipleSlashes/Makefile =================================================================== --- head/www/p5-Plack-Middleware-NoMultipleSlashes/Makefile (revision 470096) +++ head/www/p5-Plack-Middleware-NoMultipleSlashes/Makefile (revision 470097) @@ -1,21 +1,23 @@ # $FreeBSD$ PORTNAME= Plack-Middleware-NoMultipleSlashes PORTVERSION= 0.001 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 .include Index: head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr =================================================================== --- head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr (revision 470096) +++ head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr (revision 470097) @@ -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/ Property changes on: head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -on \ No newline at end of property +yes \ No newline at end of property