version 1.668, 2020/03/03 01:16:35
|
version 1.670, 2020/03/06 19:40:57
|
Line 1227 sub update_paste_buffer {
|
Line 1227 sub update_paste_buffer {
|
} elsif ($url =~ m{^/res/$match_domain/$match_username/}) { |
} elsif ($url =~ m{^/res/$match_domain/$match_username/}) { |
$pasteurls{$url} = 1; |
$pasteurls{$url} = 1; |
} else { |
} else { |
$pasteurls{$cid.'_'.$url} = 1; |
$pasteurls{$cid.'_'.$url} = 1; |
} |
} |
} |
} |
} |
} |
Line 4203 END
|
Line 4203 END
|
if (&Apache::lonnet::symbverify($symb,$url)) { |
if (&Apache::lonnet::symbverify($symb,$url)) { |
my $shownsymb = $symb; |
my $shownsymb = $symb; |
if ($isexternal) { |
if ($isexternal) { |
if ($url =~ /^([^#]+)#([^#]+)$/) { |
$url =~ s/\#[^#]+$//; |
$url = $1; |
|
$anchor = $2; |
|
my $escan = &escape('#'); |
|
$shownsymb =~ s/^([^\#]+)#([^\#]+)$/$1$escan$2/; |
|
} |
|
if ($container eq 'page') { |
if ($container eq 'page') { |
$url = &Apache::lonnet::clutter($url); |
$url = &Apache::lonnet::clutter($url); |
} |
} |