Reject subscription requests for handlers that don't support http-post

This commit is contained in:
Zach Copley 2009-12-13 20:30:17 +00:00
parent 48af79dbb4
commit aad54af448

View File

@ -106,6 +106,10 @@ class RSSCloudRequestNotifyAction extends Action
if (empty($this->protocol)) {
$missing[] = 'protocol';
} else if (strtolower($this->protocol) != 'http-post') {
$msg = 'Only http-post notifications are supported at this time.';
$this->showResult(false, $msg);
return;
}
if (!isset($this->procedure)) {
@ -120,8 +124,8 @@ class RSSCloudRequestNotifyAction extends Action
}
if (empty($this->feeds)) {
$this->showResult(false,
'You must provide at least one valid profile feed url (url1, url2, url3 ... urlN).');
$msg = 'You must provide at least one valid profile feed url (url1, url2, url3 ... urlN).';
$this->showResult(false, $msg);
return;
}