BSD Ports

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

SystemPortVersion
FreeBSDwww/p5-Plack-Middleware-NoMultipleSlashes0.001
DragonFlywww/p5-Plack-Middleware-NoMultipleSlashes0.001
HardenedBSDwww/p5-Plack-Middleware-NoMultipleSlashes0.001
GhostBSDwww/p5-Plack-Middleware-NoMultipleSlashes0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.0010.0010.0010.0010.001
FreeBSD:14:quarterly0.0010.001n/a0.0010.001
FreeBSD:15:latest0.0010.001n/a0.0010.001
FreeBSD:15:quarterly0.0010.001n/an/an/a
FreeBSD:16:latest0.0010.001n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 29
Run dependencies 29

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
FileSizeSHA256
Plack-Middleware-NoMultipleSlashes-0.001.tar.gz10535bdc37f1089556e5bf78f2421df1073d0c3d1cc356a73205f478e5fc78b152ee3
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.