version 1.121.2.24.2.5, 2022/08/30 12:10:43
|
version 1.121.2.24.2.6, 2023/01/23 00:38:50
|
Line 116 sub success {
|
Line 116 sub success {
|
$destination .= 'selectrole=1&'.$newrole.'=1'; |
$destination .= 'selectrole=1&'.$newrole.'=1'; |
} |
} |
} |
} |
|
} elsif (defined($form->{display})) { |
|
if ($destination =~ m{^/adm/email($|\?)}) { |
|
$destination .= ($destination =~ /\?/) ? '&' : '?' .'display='.&escape($form->{display}); |
|
} |
} |
} |
if (defined($form->{symb})) { |
if (defined($form->{symb})) { |
my $destsymb = $form->{symb}; |
my $destsymb = $form->{symb}; |
Line 759 sub handler {
|
Line 763 sub handler {
|
} |
} |
if ($form{'firsturl'} =~ m{^/tiny/$match_domain/\w+$}) { |
if ($form{'firsturl'} =~ m{^/tiny/$match_domain/\w+$}) { |
&set_deeplink_login(%form); |
&set_deeplink_login(%form); |
|
} elsif ($firsturl eq '/adm/email') { |
|
if ($form{'display'} && ($form{'mailrecip'} eq "$form{'uname'}:$form{'udom'}")) { |
|
$env{'request.display'} = $form{'display'}; |
|
$env{'request.mailrecip'} = $form{'mailrecip'}; |
|
} |
} |
} |
$r->internal_redirect($switchto); |
$r->internal_redirect($switchto); |
} else { |
} else { |
Line 795 sub handler {
|
Line 804 sub handler {
|
} |
} |
if ($form{'firsturl'} =~ m{^/tiny/$match_domain/\w+$}) { |
if ($form{'firsturl'} =~ m{^/tiny/$match_domain/\w+$}) { |
&set_deeplink_login(%form); |
&set_deeplink_login(%form); |
|
} elsif ($firsturl eq '/adm/email') { |
|
if ($form{'display'} && ($form{'mailrecip'} eq "$form{'uname'}:$form{'udom'}")) { |
|
$env{'request.display'} = $form{'display'}; |
|
$env{'request.mailrecip'} = $form{'mailrecip'}; |
|
} |
} |
} |
$r->internal_redirect($switchto); |
$r->internal_redirect($switchto); |
} else { |
} else { |
Line 834 sub handler {
|
Line 848 sub handler {
|
} |
} |
if ($form{'firsturl'} =~ m{^/tiny/$match_domain/\w+$}) { |
if ($form{'firsturl'} =~ m{^/tiny/$match_domain/\w+$}) { |
&set_deeplink_login(%form); |
&set_deeplink_login(%form); |
|
} elsif ($firsturl eq '/adm/email') { |
|
if ($form{'display'} && ($form{'mailrecip'} eq "$form{'uname'}:$form{'udom'}")) { |
|
$env{'request.display'} = $form{'display'}; |
|
$env{'request.mailrecip'} = $form{'mailrecip'}; |
|
} |
} |
} |
$r->internal_redirect('/adm/switchserver?otherserver='.$unloaded.'&origurl='.$firsturl); |
$r->internal_redirect('/adm/switchserver?otherserver='.$unloaded.'&origurl='.$firsturl); |
return OK; |
return OK; |
Line 853 sub handler {
|
Line 872 sub handler {
|
$form{$item} = $sessiondata{$item}; |
$form{$item} = $sessiondata{$item}; |
} |
} |
} |
} |
|
if ($sessiondata{'origurl'} eq '/adm/email') { |
|
if (($sessiondata{'display'}) && ($sessiondata{'mailrecip'})) { |
|
if (&unescape($sessiondata{'mailrecip'}) eq "$form{'uname'}:$form{'udom'}") { |
|
$form{'display'} = &unescape($sessiondata{'display'}); |
|
$form{'mailrecip'} = &unescape($sessiondata{'mailrecip'}); |
|
} |
|
} |
|
} |
} |
} |
} |
} |
if ($form{'linkprot'}) { |
if ($form{'linkprot'}) { |
Line 1051 sub check_can_host {
|
Line 1078 sub check_can_host {
|
$form); |
$form); |
if ($form->{'firsturl'} =~ m{^/tiny/$match_domain/\w+$}) { |
if ($form->{'firsturl'} =~ m{^/tiny/$match_domain/\w+$}) { |
$env{'request.deeplink.login'} = $form->{'firsturl'}; |
$env{'request.deeplink.login'} = $form->{'firsturl'}; |
|
} elsif ($form->{'firsturl'} eq '/adm/email') { |
|
if ($form->{'display'} && ($form->{'mailrecip'} eq $form->{'uname'}.':'.$form->{'udom'})) { |
|
$env{'request.display'} = $form->{'mailrecip'}; |
|
$env{'request.mailrecip'} = $form->{'mailrecip'}; |
|
} |
} |
} |
if ($form->{'linkprot'}) { |
if ($form->{'linkprot'}) { |
$env{'request.linkprot'} = $form->{'linkprot'}; |
$env{'request.linkprot'} = $form->{'linkprot'}; |