diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index 9cd110917..ecca0adf7 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -562,7 +562,11 @@ function dfrn_poll_content(App $a) break; default: $appendix = (strstr($destination_url, '?') ? '&f=&redir=1' : '?f=&redir=1'); - System::externalRedirect($destination_url . $appendix); + if (filter_var($url, FILTER_VALIDATE_URL)) { + System::externalRedirect($destination_url . $appendix); + } else { + $a->internalRedirect($destination_url . $appendix); + } break; } // NOTREACHED