Apache-ProxyRewrite
view release on metacpan or search on metacpan
ProxyRewrite.pm view on Meta::CPAN
# b) its license agreement:
#
# i) effectively disclaims on behalf of all Contributors all
# warranties and conditions, express and implied, including
# warranties or conditions of title and non-infringement, and
# implied warranties or conditions of merchantability and fitness
# for a particular purpose;
#
# ii) effectively excludes on behalf of all Contributors all
# liability for damages, including direct, indirect, special,
# incidental and consequential damages, such as lost profits;
# iii) states that any provisions which differ from this Agreement
# are offered by that Contributor alone and not by any other party;
# and
#
# iv) states that source code for the Program is available from such
# Contributor, and informs licensees how to obtain it in a
# reasonable manner on or through a medium customarily used for
# software exchange.
#
# When the Program is made available in source code form:
ProxyRewrite.pm view on Meta::CPAN
last if ($pos == -1);
}
$lastblock = substr($buf, $pos, $buflen);
$newbuf .= "$lastblock";
$response->content($newbuf);
}
###############################################################################
###############################################################################
# dealwithtag: decides if there a URL in a tag and sends it to be rewritten
###############################################################################
###############################################################################
sub dealwithtag {
my ($r, $remote_site, $tagblock, $mapref) = @_;
my @blocks;
my ($tag, $lctag, $key, $lckey, $value, $lcvalue, $delay, $tmp, $i);
my $done = 0;
my $refresh = 0;
# Remove spaces around equal signs, eg 'src = bar' becomes 'src=bar'
( run in 0.404 second using v1.01-cache-2.11-cpan-de7293f3b23 )