- $hub_mode = notags(trim($_GET['hub.mode']));
- $hub_topic = notags(trim($_GET['hub.topic']));
- $hub_challenge = notags(trim($_GET['hub.challenge']));
- $hub_lease = notags(trim($_GET['hub.lease_seconds']));
- $hub_verify = notags(trim($_GET['hub.verify_token']));
+ $hub_mode = ((x($_GET,'hub_mode')) ? notags(trim($_GET['hub_mode'])) : '');
+ $hub_topic = ((x($_GET,'hub_topic')) ? notags(trim($_GET['hub_topic'])) : '');
+ $hub_challenge = ((x($_GET,'hub_challenge')) ? notags(trim($_GET['hub_challenge'])) : '');
+ $hub_lease = ((x($_GET,'hub_lease_seconds')) ? notags(trim($_GET['hub_lease_seconds'])) : '');
+ $hub_verify = ((x($_GET,'hub_verify_token')) ? notags(trim($_GET['hub_verify_token'])) : '');
+
+ logger('pubsub: Subscription from ' . $_SERVER['REMOTE_ADDR']);
+ logger('pubsub: data: ' . print_r($_GET,true), LOGGER_DATA);