]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Reject subscription requests for handlers that don't support http-post
authorZach Copley <zach@status.net>
Sun, 13 Dec 2009 20:30:17 +0000 (20:30 +0000)
committerZach Copley <zach@status.net>
Wed, 6 Jan 2010 07:21:46 +0000 (23:21 -0800)
plugins/RSSCloud/RSSCloudRequestNotify.php

index 4703ecd104aac001ff18ac7d8e8166bee5692c6f..9643bf43258fef82659eba8911e90fb8745bb6a9 100644 (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;
         }