Issue 1913: Report invalid feed
This commit is contained in:
parent
a102fd83e8
commit
c0e277cec8
5 changed files with 12 additions and 5 deletions
|
@ -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"];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue