Issue 1913: Report invalid feed

This commit is contained in:
Michael Vogel 2015-10-04 00:28:15 +02:00
commit c0e277cec8
5 changed files with 12 additions and 5 deletions

View file

@ -31,6 +31,12 @@ function follow_content(&$a) {
$ret = probe_url($url);
if ($ret["network"] == NETWORK_PHANTOM) {
notice( t("The network type couldn't be detected. Contact can't be added.") . EOL);
goaway($_SESSION['return_url']);
// NOTREACHED
}
if ($ret["network"] == NETWORK_MAIL)
$ret["url"] = $ret["addr"];