Plugin now checks notify handlers before registering subscriptions

This commit is contained in:
Zach Copley
2009-12-07 09:10:04 +00:00
parent 4e07d9eeec
commit 61804bb7bb
4 changed files with 113 additions and 102 deletions

View File

@@ -1,5 +1,4 @@
<?php
/**
* This test class pretends to be an RSS aggregator. It logs notifications
* from the cloud.
@@ -78,8 +77,7 @@ class LoggingAggregatorAction extends Action
}
header('Content-Type: text/xml');
echo "<notifyResult success='true' msg='Thanks for the update.' challenge='" .
$this->challenge . "' />\n";
echo $this->challenge;
} else {
@@ -92,7 +90,6 @@ class LoggingAggregatorAction extends Action
header('Content-Type: text/xml');
echo '<notifyResult success=\'true\' msg=\'Thanks for the update.\' />' . "\n";
}
$this->ip = $_SERVER['REMOTE_ADDR'];