Port details on branch 2022Q3 |
- p5-Plack-Middleware-NoMultipleSlashes Remove multiple slashes in your paths automatically
- 0.001 www =0 0.001Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2015-12-11 13:39:44
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/release/Plack-Middleware-NoMultipleSlashes
- Description:
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Plack-Middleware-NoMultipleSlashes>0:www/p5-Plack-Middleware-NoMultipleSlashes
- To install the port:
- cd /usr/ports/www/p5-Plack-Middleware-NoMultipleSlashes/ && make install clean
- To add the package, run one of these commands:
- pkg install www/p5-Plack-Middleware-NoMultipleSlashes
- pkg install p5-Plack-Middleware-NoMultipleSlashes
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Plack-Middleware-NoMultipleSlashes
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (Plack-Middleware-NoMultipleSlashes-0.001.tar.gz) = bdc37f1089556e5bf78f2421df1073d0c3d1cc356a73205f478e5fc78b152ee3
SIZE (Plack-Middleware-NoMultipleSlashes-0.001.tar.gz) = 10535
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- p5-Plack>=0 : www/p5-Plack
- perl5>=5.32.r0<5.33 : lang/perl5.32
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- p5-Plack>=0 : www/p5-Plack
- perl5>=5.32.r0<5.33 : lang/perl5.32
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- www_p5-Plack-Middleware-NoMultipleSlashes
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|