www/p5-Plack-Middleware-NoMultipleSlashes 0.001 FreeBSD
Remove multiple slashes in your paths automatically
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- www, perl5
- Package size
- 10.7 KiB, 40.3 KiB installed
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.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | www/p5-Plack-Middleware-NoMultipleSlashes | 0.001 |
| DragonFly | www/p5-Plack-Middleware-NoMultipleSlashes | 0.001 |
| HardenedBSD | www/p5-Plack-Middleware-NoMultipleSlashes | 0.001 |
| GhostBSD | www/p5-Plack-Middleware-NoMultipleSlashes | 0.001 |
Install
Binary package:
pkg install p5-Plack-Middleware-NoMultipleSlashes
From the ports tree:
cd /usr/ports/www/p5-Plack-Middleware-NoMultipleSlashes/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Plack-Middleware-NoMultipleSlashes>0:www/p5-Plack-Middleware-NoMultipleSlashes
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.001 | 0.001 | 0.001 | 0.001 | 0.001 |
| FreeBSD:14:quarterly | 0.001 | 0.001 | n/a | 0.001 | 0.001 |
| FreeBSD:15:latest | 0.001 | 0.001 | n/a | 0.001 | 0.001 |
| FreeBSD:15:quarterly | 0.001 | 0.001 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.001 | 0.001 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
p5-Plack>=0: www/p5-Plack
Runtime 1
p5-Plack>=0: www/p5-Plack
The full lists below include those, and their dependencies in turn.
Build dependencies 29
- converters/p5-Cpanel-JSON-XS
- converters/p5-Encode-Locale
- converters/p5-JSON-MaybeXS
- converters/p5-MIME-Base32
- converters/p5-MIME-Base64
- devel/p5-Class-Inspector
- devel/p5-Clone
- devel/p5-Devel-StackTrace
- devel/p5-Devel-StackTrace-AsHTML
- devel/p5-File-ShareDir
- devel/p5-Filesys-Notify-Simple
- devel/p5-Hash-MultiValue
- devel/p5-IO-HTML
- devel/p5-POSIX-strftime-Compiler
- devel/p5-Stream-Buffered
- devel/p5-TimeDate
- lang/p5-Try-Tiny
- lang/perl5.42
- net/p5-URI
- www/p5-Apache-LogFormat-Compiler
- www/p5-Cookie-Baker
- www/p5-HTTP-Date
- www/p5-HTTP-Entity-Parser
- www/p5-HTTP-Headers-Fast
- www/p5-HTTP-Message
- www/p5-HTTP-MultiPartParser
- www/p5-LWP-MediaTypes
- www/p5-Plack
- www/p5-WWW-Form-UrlEncoded
Run dependencies 29
- converters/p5-Cpanel-JSON-XS
- converters/p5-Encode-Locale
- converters/p5-JSON-MaybeXS
- converters/p5-MIME-Base32
- converters/p5-MIME-Base64
- devel/p5-Class-Inspector
- devel/p5-Clone
- devel/p5-Devel-StackTrace
- devel/p5-Devel-StackTrace-AsHTML
- devel/p5-File-ShareDir
- devel/p5-Filesys-Notify-Simple
- devel/p5-Hash-MultiValue
- devel/p5-IO-HTML
- devel/p5-POSIX-strftime-Compiler
- devel/p5-Stream-Buffered
- devel/p5-TimeDate
- lang/p5-Try-Tiny
- lang/perl5.42
- net/p5-URI
- www/p5-Apache-LogFormat-Compiler
- www/p5-Cookie-Baker
- www/p5-HTTP-Date
- www/p5-HTTP-Entity-Parser
- www/p5-HTTP-Headers-Fast
- www/p5-HTTP-Message
- www/p5-HTTP-MultiPartParser
- www/p5-LWP-MediaTypes
- www/p5-Plack
- www/p5-WWW-Form-UrlEncoded
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Plack/Middleware/NoMultipleSlashes.pm
- %%PERL5_MAN3%%/Plack::Middleware::NoMultipleSlashes.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Plack-Middleware-NoMultipleSlashes-0.001.tar.gz | 10535 | bdc37f1089556e5bf78f2421df1073d0c3d1cc356a73205f478e5fc78b152ee3 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.