Merge pull request #6155 from fabrixxm/issues/localredirect
Use appropriate redirect in dfrn_poll
This commit is contained in:
commit
381474f314
1 changed files with 5 additions and 1 deletions
|
@ -562,7 +562,11 @@ function dfrn_poll_content(App $a)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$appendix = (strstr($destination_url, '?') ? '&f=&redir=1' : '?f=&redir=1');
|
$appendix = (strstr($destination_url, '?') ? '&f=&redir=1' : '?f=&redir=1');
|
||||||
|
if (filter_var($url, FILTER_VALIDATE_URL)) {
|
||||||
System::externalRedirect($destination_url . $appendix);
|
System::externalRedirect($destination_url . $appendix);
|
||||||
|
} else {
|
||||||
|
$a->internalRedirect($destination_url . $appendix);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// NOTREACHED
|
// NOTREACHED
|
||||||
|
|
Loading…
Reference in a new issue