mirror of
https://github.com/friendica/friendica
synced 2025-04-19 10:30:10 +00:00
Improved redirect for contact actions
This commit is contained in:
parent
3776cf8919
commit
342c9088d3
3 changed files with 12 additions and 3 deletions
|
@ -58,7 +58,13 @@ class Contact extends BaseModule
|
|||
return;
|
||||
}
|
||||
|
||||
$redirectUrl = $_POST['redirect_url'] ?? 'contact';
|
||||
$redirectUrl = $_POST['command'] ?? '';
|
||||
if (substr($redirectUrl, 0, 7) != 'contact') {
|
||||
$redirectUrl = 'contact';
|
||||
}
|
||||
if (!empty($_POST['parameter'])) {
|
||||
$redirectUrl .= '?' . $_POST['parameter'];
|
||||
}
|
||||
|
||||
self::checkFormSecurityTokenRedirectOnError($redirectUrl, 'contact_batch_actions');
|
||||
|
||||
|
@ -459,6 +465,7 @@ class Contact extends BaseModule
|
|||
'$finding' => $searching ? DI::l10n()->t('Results for: %s', $search) : '',
|
||||
'$submit' => DI::l10n()->t('Find'),
|
||||
'$cmd' => DI::args()->getCommand(),
|
||||
'$parameter' => http_build_query($request),
|
||||
'$contacts' => $contacts,
|
||||
'$form_security_token' => BaseModule::getFormSecurityToken('contact_batch_actions'),
|
||||
'multiselect' => 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue