Name

Bric::Util::ApacheUtil - Wrapper around Apache::Util and Apache2::Util classes

Synopsis

use Bric::Util::ApacheUtil qw(escape_html escape_uri unescape_url);

Description

This package encapsulates the Apache::Util and Apache2::Util classes so that Bricolage doesn't have to care about which version of Apache is running.

Interface

Functions

my $str = Bric::Util::ApacheUtil::unescape_url($url);

Apache::unescape_url or Apache2::URI::unescape_url.

my $str = Bric::Util::ApacheUtil::escape_uri($uri, $r->pool);

Replaces Apache::Util::escape_uri, Apache2::Util::escape_path, or URI::Escape::uri_escape.

my $str = Bric::Util::ApacheUtil::unescape_uri($uri, $r->pool);

Replaces Apache::Util::unescape_uri, Apache2::Util::unescape_path, or URI::Escape::uri_unescape.

Author

Scott Lanning <slanning@cpan.org>