From owner-svn-ports-all@freebsd.org Wed May 16 00:01:30 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A07D2EDE4D8; Wed, 16 May 2018 00:01:30 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E1ABB6BA8C; Wed, 16 May 2018 00:01:28 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 23FAF128BC; Wed, 16 May 2018 00:01:28 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4G01R1c086787; Wed, 16 May 2018 00:01:27 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4G01Rr4086786; Wed, 16 May 2018 00:01:27 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201805160001.w4G01Rr4086786@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Wed, 16 May 2018 00:01:27 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: head/www/p5-Plack-Middleware-NoMultipleSlashes X-SVN-Commit-Revision: 470097 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2018 00:01:31 -0000 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/