diff options
author | Stifler <Stifler6996@users.noreply.github.com> | 2020-05-28 09:59:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 09:59:28 +0300 |
commit | 36255f35e9a8698c46ce20d06412e8bc16f821fc (patch) | |
tree | 28b0b28bf4fcdbd0c7c85610bff94a17bbe90be8 | |
parent | e0e14ee64250a36b5cd61024a1e2cb9d1e951dd2 (diff) |
support for files with @ symbol in their name
This fixes the issue with 64x64@2 Icon files and others that contain the "@" symbol in them.
-rwxr-xr-x | apt-mirror | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -485,7 +485,8 @@ sub sanitise_uri { my $uri = shift; $uri =~ s[^(\w+)://][]; - $uri =~ s/^([^@]+)?@?// if $uri =~ /@/; + #$uri =~ s/^([^@]+)?@?// if $uri =~ /@/; + $uri =~ s/^([^@]+)?@?// if (split '/',$uri)[0] =~ /@/; $uri =~ s&:\d+/&/&; # and port information $uri =~ s/~/\%7E/g if get_variable("_tilde"); return $uri; |