Skip to content

Commit

Permalink
Fixed fragment deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
max197616 committed Aug 8, 2019
1 parent 1c39564 commit 46565ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/extfilter-maker/extfilter_maker.pl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@
$url2 = substr($url2, 0, $idx);
}
# delete fragment
$url2 =~ s/^(.*)\#(.*)$/$1/;
if((my $idx = index($url2, "#")) != -1)
{
$url2 = substr($url2, 0, $idx);
}

my $url1=new URI($url2);
my $scheme=$url1->scheme();
Expand Down

0 comments on commit 46565ec

Please sign in to comment.