summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-12-13 20:30:17 +0000
committerZach Copley <zach@status.net>2010-01-05 23:21:46 -0800
commitaad54af448089868dd1c6bcd35a5b4a301837ae4 (patch)
tree90ca372b27b194930a70f4d67a1ba11b12788d9d
parent48af79dbb4cf1b4f915bf0d3d05e9fe3770664df (diff)
Reject subscription requests for handlers that don't support http-post
-rw-r--r--plugins/RSSCloud/RSSCloudRequestNotify.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/RSSCloud/RSSCloudRequestNotify.php b/plugins/RSSCloud/RSSCloudRequestNotify.php
index 4703ecd10..9643bf432 100644
--- a/plugins/RSSCloud/RSSCloudRequestNotify.php
+++ b/plugins/RSSCloud/RSSCloudRequestNotify.php
@@ -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;
}