#!/usr/local/bin/perl -Tw
#
-# * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+# * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
# *
# * Squid software is distributed under GPLv2+ license and includes
# * contributions from numerous individuals and organizations.
$epath =~ s/%7e/~/ig; # unescape ~
$epath =~ s/(%[\da-f]{2})/\U$1/ig; # capitalize escape digits
if ($url->scheme =~ /^(http|ftp)$/) {
- $epath =~ s:/\./:/:g; # safe?
- $epath =~ s://:/:g; # safe?
+ $epath =~ s:/\./:/:g; # safe?
+ $epath =~ s://:/:g; # safe?
}
$url->epath($epath);
BEGIN {
unless (URI::URL::implementor('cache_object')) {
- package cache_object;
- @cache_object::ISA = (URI::URL::implementor());
- URI::URL::implementor('cache_object', 'cache_object');
+ package cache_object;
+ @cache_object::ISA = (URI::URL::implementor());
+ URI::URL::implementor('cache_object', 'cache_object');
- sub default_port { 3128 }
+ sub default_port { 3128 }
}
}