Issue 6168: "redir" now mostly use OWA

This commit is contained in:
Michael 2018-12-04 07:12:55 +00:00
commit 491fc5f78a
6 changed files with 34 additions and 10 deletions

View file

@ -561,11 +561,7 @@ function dfrn_poll_content(App $a)
break;
default:
$appendix = (strstr($destination_url, '?') ? '&f=&redir=1' : '?f=&redir=1');
if (filter_var($url, FILTER_VALIDATE_URL)) {
System::externalRedirect($destination_url . $appendix);
} else {
$a->internalRedirect($destination_url . $appendix);
}
$a->redirect($destination_url . $appendix);
break;
}
// NOTREACHED